3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (defined('PHP_VERSION_ID') && version_compare(PHP_VERSION_ID, '5.3') >= 0){ echo PHP_VERSION_ID; // use autoloader in higher versions function PilipaySplAutoloader($class){ $pilipay = 'Pilipay'; $class = ltrim($class, '\\'); if (strncmp($class, $pilipay, strlen($pilipay)) === 0){ $file = __DIR__ . DIRECTORY_SEPARATOR . $class . '.php'; if (file_exists($file)){ include($file); } } } spl_autoload_register('PilipaySplAutoloader'); } else { echo "old version!"; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00716.75
8.3.50.0070.00716.48
8.3.40.0140.00718.48
8.3.30.0120.00318.61
8.3.20.0040.00420.24
8.3.10.0040.00423.68
8.3.00.0040.00423.66
8.2.180.0150.00316.38
8.2.170.0060.00922.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00419.64
8.2.120.0000.00726.35
8.2.110.0030.00820.53
8.2.100.0040.00717.78
8.2.90.0000.00819.05
8.2.80.0000.00917.97
8.2.70.0030.00717.50
8.2.60.0000.00817.80
8.2.50.0000.00918.07
8.2.40.0040.00420.47
8.2.30.0040.00419.48
8.2.20.0040.00417.73
8.2.10.0000.00718.04
8.2.00.0000.00918.05
8.1.280.0170.00725.92
8.1.270.0080.00023.91
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0040.00421.24
8.1.230.0040.00717.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00717.35
8.1.190.0090.00017.11
8.1.180.0060.00318.10
8.1.170.0040.00418.55
8.1.160.0040.00420.70
8.1.150.0000.00718.79
8.1.140.0050.00519.43
8.1.130.0000.00717.54
8.1.120.0040.00417.36
8.1.110.0040.00417.38
8.1.100.0070.00017.27
8.1.90.0000.01217.34
8.1.80.0000.00817.32
8.1.70.0040.00417.36
8.1.60.0060.00317.40
8.1.50.0000.00817.45
8.1.40.0000.00717.43
8.1.30.0050.00317.59
8.1.20.0000.00817.46
8.1.10.0050.00217.44
8.1.00.0070.00017.41
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.40
8.0.270.0040.00417.24
8.0.260.0060.00017.15
8.0.250.0000.00716.78
8.0.240.0040.00416.86
8.0.230.0030.00316.82
8.0.220.0050.00316.87
8.0.210.0000.00716.82
8.0.200.0060.00016.94
8.0.190.0030.00516.79
8.0.180.0030.00316.88
8.0.170.0080.00016.80
8.0.160.0030.00416.74
8.0.150.0070.00016.88
8.0.140.0050.00316.76
8.0.130.0030.00313.26
8.0.120.0030.00616.63
8.0.110.0040.00416.82
8.0.100.0000.00716.77
8.0.90.0040.00416.73
8.0.80.0060.00916.72
8.0.70.0040.00416.77
8.0.60.0030.00316.67
8.0.50.0040.00416.79
8.0.30.0110.00417.23
8.0.20.0050.01317.40
8.0.10.0000.00716.89
8.0.00.0120.01016.70
7.4.330.0020.00216.72
7.4.320.0060.00016.55
7.4.300.0060.00316.59
7.4.290.0040.00416.44
7.4.280.0060.00516.53
7.4.270.0040.00316.56
7.4.260.0030.00316.36
7.4.250.0080.00016.46
7.4.240.0020.00516.55
7.4.230.0030.00516.62
7.4.220.0060.01316.57
7.4.210.0040.01216.61
7.4.200.0030.00316.35
7.4.160.0060.01116.43
7.4.150.0070.01017.40
7.4.140.0090.00917.86
7.4.130.0120.00616.59
7.4.120.0070.01016.55
7.4.110.0110.00716.42
7.4.100.0180.00616.39
7.4.90.0030.01516.40
7.4.80.0160.00919.39
7.4.70.0100.00616.48
7.4.60.0040.01216.46
7.4.50.0030.00616.14
7.4.40.0030.01416.61
7.4.30.0080.00816.61
7.4.00.0050.01014.70
7.3.330.0020.00213.07
7.3.320.0000.00713.21
7.3.310.0040.00416.23
7.3.300.0030.00316.32
7.3.290.0030.00316.21
7.3.280.0110.00716.24
7.3.270.0150.01117.40
7.3.260.0180.00016.35
7.3.240.0120.00816.34
7.3.230.0060.01216.39
7.3.210.0150.00916.48
7.3.200.0060.01219.39
7.3.190.0080.00916.40
7.3.180.0150.00616.15
7.3.170.0140.00316.40
7.3.160.0120.00316.30
7.3.120.0070.01014.88
7.3.110.0040.01214.63
7.3.100.0000.01614.56
7.3.90.0070.00714.72
7.3.80.0100.00314.67
7.3.70.0100.00714.79
7.3.60.0070.00714.82
7.3.50.0090.00314.93
7.3.40.0060.00614.79
7.3.30.0060.00314.43
7.3.20.0090.00016.57
7.3.10.0060.00716.55
7.3.00.0070.00616.63
7.2.330.0070.01116.57
7.2.320.0070.01116.45
7.2.310.0100.00716.25
7.2.300.0040.01516.59
7.2.290.0070.01216.64
7.2.250.0030.01314.95
7.2.240.0100.01015.08
7.2.230.0070.01114.78
7.2.220.0060.01015.18
7.2.210.0040.01114.99
7.2.200.0030.01015.02
7.2.190.0040.01115.06
7.2.180.0000.01014.98
7.2.170.0070.00714.89
7.2.130.0120.00616.53
7.2.120.0180.00316.73
7.2.110.0100.01316.60
7.2.100.0120.00716.72
7.2.90.0130.00916.48
7.2.80.0070.01116.70
7.2.70.0090.00616.83
7.2.60.0110.00516.75
7.2.50.0100.00716.76
7.2.40.0130.00616.60
7.2.30.0110.00716.64
7.2.20.0130.00816.41
7.2.10.0130.00716.59
7.2.00.0100.00917.47
7.1.330.0070.00815.61
7.1.320.0080.00815.71
7.1.310.0070.01115.35
7.1.300.0060.00615.51
7.1.290.0030.00915.67
7.1.280.0060.00615.89
7.1.270.0090.00615.66
7.1.260.0080.00815.60
7.1.250.0100.00515.38
7.1.200.0030.00615.52
7.1.100.0030.01017.96
7.1.70.0070.01017.01
7.1.60.0040.01919.30
7.1.50.0040.01816.86
7.1.00.0030.07322.31
7.0.200.0030.00616.73
7.0.60.0170.07021.74
7.0.50.0100.07317.84
7.0.40.0030.06320.13
7.0.30.0370.07320.09
7.0.20.0530.06720.15
7.0.10.0070.08320.16
7.0.00.0270.06320.30
5.6.280.0000.05720.77
5.6.210.0030.07020.53
5.6.200.0070.03718.25
5.6.190.0130.07720.55
5.6.180.0370.05720.67
5.6.170.0200.05020.45
5.6.160.0030.06020.50
5.6.150.0130.07318.15
5.6.140.0130.07318.21
5.6.130.0030.06018.26
5.6.120.0070.04021.12
5.6.110.0230.07720.93
5.6.100.0130.07321.04
5.6.90.0170.07720.98
5.6.80.0100.07320.38
5.5.350.0130.08020.43
5.5.340.0030.08718.07
5.5.330.0170.07320.47
5.5.320.0600.06320.30
5.5.310.0330.07020.34
5.5.300.0030.04018.08
5.5.290.0130.07317.94
5.5.280.0100.08320.77
5.5.270.0130.05020.65
5.5.260.0070.08020.88
5.5.250.0100.09020.46
5.5.240.0170.07020.12

preferences:
67.08 ms | 401 KiB | 5 Q