3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(version_compare(PHP_VERSION, '5.3.0') < 0) { return; } class c { public static $f; public function __construct() { var_dump(get_class(self::$f)); } } c:$f = function() { return 'ok'; }; new c();

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.40.0120.00318.70
8.3.30.0100.00319.18
8.3.20.0080.00020.34
8.3.10.0040.00421.80
8.3.00.0080.00022.12
8.2.170.0110.00422.96
8.2.160.0070.00719.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0060.00319.36
8.2.110.0060.00320.61
8.2.100.0040.00819.45
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0100.00017.90
8.2.50.0070.00318.07
8.2.40.0000.00819.89
8.2.30.0050.00218.04
8.2.20.0050.00217.66
8.2.10.0020.00517.75
8.2.00.0040.00417.74
8.1.270.0080.00022.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00318.49
8.1.230.0110.00019.00
8.1.220.0070.00017.79
8.1.210.0050.00318.77
8.1.200.0040.00417.38
8.1.190.0030.00617.42
8.1.180.0030.00618.87
8.1.170.0090.00318.45
8.1.160.0040.00422.04
8.1.150.0040.00418.52
8.1.140.0050.00217.50
8.1.130.0030.00317.76
8.1.120.0070.00017.36
8.1.110.0040.00417.48
8.1.100.0030.00317.44
8.1.90.0000.00717.45
8.1.80.0000.00717.49
8.1.70.0040.00417.40
8.1.60.0040.00417.57
8.1.50.0000.00817.51
8.1.40.0030.00517.53
8.1.30.0090.00017.50
8.1.20.0000.00817.55
8.1.10.0080.00017.59
8.1.00.0030.00517.45
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0000.00718.29
8.0.270.0070.00017.22
8.0.260.0030.00316.81
8.0.250.0030.00316.95
8.0.240.0030.00516.93
8.0.230.0040.00417.01
8.0.220.0000.00716.82
8.0.210.0030.00316.86
8.0.200.0030.00317.02
8.0.190.0000.00717.03
8.0.180.0040.00416.92
8.0.170.0030.00616.98
8.0.160.0040.00416.93
8.0.150.0040.00416.93
8.0.140.0000.00716.93
8.0.130.0030.00313.36
8.0.120.0030.00516.89
8.0.110.0000.00716.94
8.0.100.0040.00417.01
8.0.90.0070.00016.93
8.0.80.0110.01116.89
8.0.70.0000.00716.92
8.0.60.0000.00716.89
8.0.50.0000.00717.04
8.0.30.0100.01217.21
8.0.20.0040.01517.44
8.0.10.0040.00417.11
8.0.00.0100.01316.81
7.4.330.0000.00715.00
7.4.320.0030.00316.50
7.4.300.0070.00016.43
7.4.290.0030.00316.44
7.4.280.0040.00416.55
7.4.270.0000.00716.47
7.4.260.0000.00716.62
7.4.250.0050.00316.47
7.4.240.0020.00516.54
7.4.230.0030.00316.29
7.4.220.0040.01416.51
7.4.210.0070.00816.61
7.4.200.0040.00416.70
7.4.190.0040.00416.74
7.4.160.0060.01016.27
7.4.150.0070.01117.40
7.4.140.0070.01517.86
7.4.130.0080.01016.53
7.4.120.0080.01016.54
7.4.110.0140.01016.66
7.4.100.0030.01516.43
7.4.90.0070.01716.45
7.4.80.0140.00919.39
7.4.70.0150.00416.25
7.4.60.0150.00416.73
7.4.50.0080.00016.62
7.4.40.0040.01122.77
7.4.30.0040.01116.45
7.4.00.0090.00615.10
7.3.330.0050.00013.17
7.3.320.0000.00513.18
7.3.310.0000.00716.34
7.3.300.0030.00316.30
7.3.290.0040.01116.30
7.3.280.0080.00816.37
7.3.270.0060.01017.40
7.3.260.0170.00016.50
7.3.250.0090.01116.39
7.3.240.0060.00916.36
7.3.230.0050.01116.39
7.3.210.0170.00316.28
7.3.200.0090.01219.39
7.3.190.0070.01116.47
7.3.180.0130.01016.27
7.3.170.0070.00816.47
7.3.160.0070.01016.46
7.3.120.0050.00514.97
7.3.10.0120.00016.43
7.3.00.0140.00416.78
7.2.330.0070.01016.56
7.2.320.0110.01116.46
7.2.310.0160.00616.46
7.2.300.0100.00716.50
7.2.290.0130.01316.43
7.2.130.0030.01216.98
7.2.120.0090.00316.99
7.2.110.0090.00016.96
7.2.100.0120.00316.92
7.2.90.0040.00817.02
7.2.80.0140.00316.79
7.2.70.0080.00416.99
7.2.60.0070.00517.01
7.2.50.0080.00916.90
7.2.40.0110.00316.78
7.2.30.0160.00616.99
7.2.20.0000.01316.85
7.2.10.0100.00316.79
7.2.00.0060.00618.17
7.1.250.0030.01215.89
7.1.200.0040.00715.67
7.1.100.0090.00317.87
7.1.70.0000.01016.97
7.1.60.0120.01219.82
7.1.50.0100.01316.87
7.1.00.0030.03722.46
7.0.200.0040.01116.84
7.0.140.0000.07721.95
7.0.60.0000.04319.86
7.0.50.0070.05717.88
7.0.40.0000.05320.14
7.0.30.0330.07720.25
7.0.20.0030.05320.26
7.0.10.0030.04320.33
7.0.00.0030.07320.29
5.6.210.0030.08720.55
5.6.200.0100.08318.29
5.6.190.0030.04720.63
5.6.180.0470.06720.49
5.6.170.0170.06020.44
5.6.160.0100.08020.51
5.6.150.0030.05018.15
5.6.140.0100.04018.18
5.6.130.0000.06318.11
5.6.120.0100.08020.91
5.6.110.0070.04721.02
5.6.100.0100.05320.99
5.6.90.0130.08721.11
5.6.80.0130.08020.49
5.5.350.0170.06020.45
5.5.340.0100.06317.94
5.5.330.0130.04320.27
5.5.320.3070.04020.47
5.5.310.0300.07320.50
5.5.300.0030.04017.95
5.5.290.0100.08017.94
5.5.280.0130.08020.76
5.5.270.0070.04020.67
5.5.260.0100.08020.84
5.5.250.0100.06720.46
5.5.240.0130.07020.27
5.4.450.0100.06319.45
5.4.440.0070.06319.57
5.4.430.0270.04019.45
5.4.420.0130.05319.33
5.4.410.0070.05719.06
5.4.400.0330.04718.55
5.4.390.0670.06018.49
5.4.380.0400.03718.72
5.4.370.0170.04718.80
5.4.360.0170.04718.84
5.4.350.0200.04718.51
5.4.340.0070.06018.80
5.4.320.0030.03912.51
5.4.310.0050.03812.50
5.4.300.0100.03512.50
5.4.290.0120.03912.50
5.4.280.0050.04112.40
5.4.270.0060.04012.40
5.4.260.0100.04718.75
5.4.250.0100.04719.09
5.4.240.0070.05018.90
5.4.230.0070.05018.90
5.4.220.0100.05318.95
5.4.210.0030.05318.79
5.4.200.0170.04318.96
5.4.190.0070.05018.66
5.4.180.0030.05318.79
5.4.170.0070.05018.67
5.4.160.0070.05018.92
5.4.150.0070.05318.82
5.4.140.0130.04316.31
5.4.130.0130.04316.43
5.4.120.0070.04716.42
5.4.110.0070.05016.52
5.4.100.0100.05016.33
5.4.90.0130.06016.56
5.4.80.0130.04016.50
5.4.70.0100.07316.51
5.4.60.0100.07016.39
5.4.50.0100.04716.44
5.4.40.0100.06016.49
5.4.30.0000.05316.54
5.4.20.0070.06016.50
5.4.10.0070.05316.35
5.4.00.0070.05715.96
5.3.290.0090.03612.80
5.3.280.0100.04714.59
5.3.270.0030.05314.61
5.3.260.0070.05714.62
5.3.250.0170.04014.61
5.3.240.0070.06014.59
5.3.230.0100.04714.76
5.3.220.0130.07014.40
5.3.210.0070.05014.55
5.3.200.0030.07014.55
5.3.190.0100.04714.39
5.3.180.0070.05014.63
5.3.170.0100.07314.63
5.3.160.0030.07314.73
5.3.150.0100.07014.74
5.3.140.0130.05014.64
5.3.130.0130.05714.38
5.3.120.0170.04314.54
5.3.110.0030.05314.63
5.3.100.0100.04714.16
5.3.90.0030.05314.18
5.3.80.0130.04314.10
5.3.70.0100.04314.11
5.3.60.0170.05014.02
5.3.50.0100.04714.13
5.3.40.0100.04313.81
5.3.30.0100.04313.82
5.3.20.0070.04713.53
5.3.10.0000.05013.73
5.3.00.0100.04713.62
5.2.170.0130.03311.05
5.2.160.0030.04011.21
5.2.150.0070.04010.99
5.2.140.0000.04711.10
5.2.130.0070.03711.27
5.2.120.0030.04010.93
5.2.110.0130.04311.28
5.2.100.0000.04011.05
5.2.90.0070.03711.17
5.2.80.0070.03711.04
5.2.70.0130.03311.07
5.2.60.0000.04311.13
5.2.50.0030.04311.09
5.2.40.0000.04311.00
5.2.30.0070.04311.06
5.2.20.0030.03711.04
5.2.10.0070.03310.88
5.2.00.0000.05710.81
5.1.60.0070.03010.09
5.1.50.0000.03710.15
5.1.40.0000.0409.95
5.1.30.0100.02710.41
5.1.20.0070.03310.43
5.1.10.0000.04010.31
5.1.00.0000.04010.04
5.0.50.0000.0308.79
5.0.40.0030.0378.45
5.0.30.0100.0338.18
5.0.20.0000.0378.43
5.0.10.0070.0238.43
5.0.00.0030.0408.12
4.4.90.0030.0207.18
4.4.80.0030.0237.18
4.4.70.0030.0207.18
4.4.60.0000.0237.18
4.4.50.0000.0237.18
4.4.40.0000.0377.18
4.4.30.0100.0137.18
4.4.20.0070.0277.18
4.4.10.0000.0237.18
4.4.00.0000.0377.18
4.3.110.0000.0237.18
4.3.100.0000.0237.18
4.3.90.0030.0207.18
4.3.80.0000.0337.18
4.3.70.0070.0177.18
4.3.60.0100.0107.18
4.3.50.0000.0207.18
4.3.40.0070.0277.18
4.3.30.0000.0237.18
4.3.20.0000.0237.18
4.3.10.0070.0177.18
4.3.00.0230.0236.84

preferences:
40.78 ms | 400 KiB | 5 Q