3v4l.org

run code in 300+ PHP versions simultaneously
<?php // In response to http://www.php.net/manual/en/language.constants.predefined.php#113130 // In fact, you can define magic constants too. (@__DIR__ == '__DIR__') && define('__DIR__', dirname(__FILE__)); echo "result of var_dump(__DIR__):\r\n"; var_dump(__DIR__); var_dump(php_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.0120.00918.55
8.3.50.0080.00822.00
8.3.40.0040.01118.79
8.3.30.0120.00619.23
8.3.20.0040.00420.29
8.3.10.0080.00023.54
8.3.00.0040.00420.94
8.2.180.0150.00316.50
8.2.170.0040.01122.96
8.2.160.0070.00720.58
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.25
8.2.110.0030.00622.09
8.2.100.0120.00017.84
8.2.90.0040.00419.27
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0060.00318.04
8.2.50.0060.00318.07
8.2.40.0050.00319.95
8.2.30.0000.00718.27
8.2.20.0080.00017.74
8.2.10.0000.00818.02
8.2.00.0000.00817.75
8.1.280.0070.00725.92
8.1.270.0000.00823.97
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.96
8.1.230.0040.00719.23
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0000.00722.10
8.1.150.0040.00418.59
8.1.140.0000.00717.44
8.1.130.0070.00017.66
8.1.120.0000.01017.45
8.1.110.0070.00017.47
8.1.100.0040.00417.29
8.1.90.0000.00717.29
8.1.80.0030.00517.46
8.1.70.0070.00017.31
8.1.60.0040.00417.52
8.1.50.0030.00617.42
8.1.40.0070.00317.38
8.1.30.0000.00917.62
8.1.20.0060.00317.66
8.1.10.0060.00317.51
8.1.00.0050.00217.50
8.0.300.0000.00919.00
8.0.290.0000.00716.75
8.0.280.0040.00218.46
8.0.270.0030.00317.32
8.0.260.0000.00717.25
8.0.250.0070.00017.02
8.0.240.0000.00616.93
8.0.230.0040.00416.91
8.0.220.0070.00016.98
8.0.210.0070.00017.00
8.0.200.0030.00316.99
8.0.190.0050.00317.04
8.0.180.0040.00416.95
8.0.170.0000.00816.87
8.0.160.0050.00316.91
8.0.150.0000.00716.79
8.0.140.0040.00416.83
8.0.130.0000.00613.40
8.0.120.0040.00416.93
8.0.110.0040.00416.86
8.0.100.0000.00716.96
8.0.90.0000.00716.81
8.0.80.0030.01116.94
8.0.70.0000.00817.02
8.0.60.0000.00717.02
8.0.50.0000.00716.84
8.0.30.0080.01117.03
8.0.20.0100.01017.40
8.0.10.0040.00417.06
8.0.00.0060.01416.68
7.4.330.0030.00315.03
7.4.320.0030.00316.55
7.4.300.0030.00316.63
7.4.290.0070.00016.54
7.4.280.0000.00816.49
7.4.270.0000.00816.61
7.4.260.0000.00716.33
7.4.250.0000.00716.54
7.4.240.0040.00416.47
7.4.230.0070.00016.64
7.4.220.0090.00916.57
7.4.210.0040.01116.49
7.4.200.0030.00316.63
7.4.160.0030.01216.50
7.4.150.0160.00817.40
7.4.140.0120.00517.86
7.4.130.0030.01316.53
7.4.120.0090.00916.43
7.4.110.0110.00716.40
7.4.100.0120.01216.41
7.4.90.0070.01116.56
7.4.80.0030.02019.39
7.4.70.0130.00316.30
7.4.60.0120.00316.62
7.4.50.0050.00516.61
7.4.40.0140.00416.54
7.4.30.0150.00316.55
7.4.00.0030.01314.83
7.3.330.0000.00612.99
7.3.320.0080.00013.16
7.3.310.0070.00016.16
7.3.300.0000.00816.30
7.3.290.0040.01116.43
7.3.280.0110.00516.24
7.3.270.0060.01217.40
7.3.260.0120.00616.50
7.3.250.0160.00016.24
7.3.240.0150.00916.65
7.3.230.0180.00316.39
7.3.210.0120.00616.29
7.3.200.0030.01819.39
7.3.190.0030.01216.23
7.3.180.0130.00316.39
7.3.170.0040.01116.39
7.3.160.0070.01016.25
7.3.120.0060.01214.58
7.2.330.0150.00916.68
7.2.320.0140.00316.67
7.2.310.0070.01016.46
7.2.300.0100.00716.49
7.2.290.0030.01416.57
7.2.80.0090.00316.23
7.2.60.0160.00016.55
7.2.00.0060.00619.20
7.1.200.0060.00615.61
7.1.100.0050.00318.23
7.1.70.0040.00417.14
7.1.60.0040.00819.70
7.1.50.0030.01716.85
7.1.00.0030.07722.31
7.0.200.0050.00316.80
7.0.140.0070.07021.96
7.0.60.0230.07721.68
7.0.50.0130.03017.86
7.0.40.0100.07720.23
7.0.30.0230.04320.30
7.0.20.0270.07020.00
7.0.10.0070.09020.00
7.0.00.0100.08720.08
5.6.280.0000.07721.02
5.6.210.0100.08320.64
5.6.200.0130.07318.17
5.6.190.0030.06020.60
5.6.180.0170.09020.41
5.6.170.0300.07720.47
5.6.160.0030.05020.52
5.6.150.0030.08718.12
5.6.140.0070.04018.16
5.6.130.0000.08318.18
5.6.120.0030.05321.13
5.6.110.0130.05321.06
5.6.100.0070.06320.93
5.6.90.0070.04020.99
5.6.80.0100.07720.43
5.5.350.0200.04020.29
5.5.340.0100.07717.96
5.5.330.0070.08020.12
5.5.320.0370.07320.29
5.5.310.0300.03320.31
5.5.300.0070.08318.01
5.5.290.0000.05718.01
5.5.280.0130.07020.88
5.5.270.0030.09320.88
5.5.260.0030.07320.88
5.5.250.0070.08020.65
5.5.240.0130.06020.06
5.4.450.3870.02719.45
5.4.440.0230.07019.58
5.4.430.0600.06719.36
5.4.420.3230.04019.47
5.4.410.4230.04019.34
5.4.400.3830.03319.13
5.4.390.3770.03719.19
5.4.380.4200.04018.92
5.4.370.4000.03319.06
5.4.360.3400.04019.02
5.4.350.3830.03719.26
5.4.340.3830.04019.17
5.4.320.4030.04719.23
5.4.310.5400.04019.09
5.4.300.4000.04719.16
5.4.290.4970.04019.16
5.4.280.4100.04019.15
5.4.270.4000.03018.96
5.4.260.4000.04019.19
5.4.250.3770.04018.86
5.4.240.4130.03719.04
5.4.230.3830.03719.00
5.4.220.3700.03719.14
5.4.210.3130.03719.11
5.4.200.3730.03319.05
5.4.190.4030.03719.08
5.4.180.4070.04018.88
5.4.170.4200.05018.87
5.4.160.4130.03319.05
5.4.150.3900.04319.17
5.4.140.4030.03016.41
5.4.130.3830.03316.43
5.4.120.4500.03316.19
5.4.110.2630.03016.15
5.4.100.0200.06016.32
5.4.90.0070.04016.22
5.4.80.3970.04016.31
5.4.70.4170.03716.55
5.4.60.4130.04316.47
5.4.50.3700.03316.29
5.4.40.2200.03016.36
5.4.30.3330.03716.13
5.4.20.2930.03016.20
5.4.10.2770.03016.43
5.4.00.3430.03015.65
5.3.290.3870.03714.68
5.3.280.3730.03314.54
5.3.270.3930.03714.42
5.3.260.4030.05014.54
5.3.250.4000.03714.53
5.3.240.4130.03714.54
5.3.230.3770.04014.51
5.3.220.4300.03014.38
5.3.210.3500.03314.54
5.3.200.0000.04014.50
5.3.190.2970.05014.57
5.3.180.4470.03714.65
5.3.170.3870.03314.45
5.3.160.3430.03714.57
5.3.150.4100.03314.45
5.3.140.3700.03714.49
5.3.130.3170.03714.48
5.3.120.2700.03714.55
5.3.110.3500.02714.33
5.3.100.3230.03714.05
5.3.90.2230.03713.94
5.3.80.2470.03313.83
5.3.70.1030.03313.95
5.3.60.0030.03314.09
5.3.50.0030.03313.87
5.3.40.2630.04013.96
5.3.30.3130.04013.77
5.3.20.2930.03313.62
5.3.10.4170.03313.59
5.3.00.4100.03013.58
5.2.170.0030.02710.97
5.2.160.2230.03311.03
5.2.150.2400.03311.00
5.2.140.2030.02711.09
5.2.130.2130.03310.95
5.2.120.2900.02311.08
5.2.110.3630.02311.20
5.2.100.3430.03011.08
5.2.90.3370.02311.07
5.2.80.3430.03311.09
5.2.70.2170.03011.03
5.2.60.3330.03311.04
5.2.50.3170.03310.87
5.2.40.2800.03310.89
5.2.30.2430.02710.91
5.2.20.2630.03010.85
5.2.10.3170.03311.01
5.2.00.3100.01710.60
5.1.60.2970.0279.98
5.1.50.3270.02710.03
5.1.40.3300.02010.03
5.1.30.2830.03010.37
5.1.20.3000.02310.35
5.1.10.2970.02710.21
5.1.00.3070.02310.05
5.0.50.1570.0238.49
5.0.40.1470.0208.30
5.0.30.1270.0338.19
5.0.20.1570.0178.34
5.0.10.1570.0238.12
5.0.00.1400.0278.21
4.4.90.0870.0205.87
4.4.80.1500.0175.89
4.4.70.1470.0175.82
4.4.60.1330.0135.89
4.4.50.1370.0205.79
4.4.40.1800.0275.86
4.4.30.1830.0135.82
4.4.20.1670.0175.83
4.4.10.1300.0175.88
4.4.00.1530.0235.82
4.3.110.1830.0175.74
4.3.100.1800.0205.82
4.3.90.1430.0175.67
4.3.80.1600.0205.71
4.3.70.1770.0175.75
4.3.60.1770.0135.79
4.3.50.1900.0105.72
4.3.40.1270.0305.70
4.3.30.0830.0175.13
4.3.20.0870.0135.13
4.3.10.0830.0135.13
4.3.00.0630.0175.13

preferences:
44.46 ms | 401 KiB | 5 Q