3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c { public static $f; public function __construct() { var_dump(is_function(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.60.0140.00718.56
8.3.50.0100.01021.02
8.3.40.0120.00618.98
8.3.30.0100.00319.17
8.3.20.0000.00820.34
8.3.10.0050.00321.86
8.3.00.0030.00522.40
8.2.180.0060.00916.88
8.2.170.0100.00322.96
8.2.160.0060.00919.29
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00626.16
8.2.120.0080.00019.36
8.2.110.0000.00922.11
8.2.100.0090.00417.91
8.2.90.0040.00419.23
8.2.80.0090.00018.05
8.2.70.0080.00017.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0080.00020.00
8.2.30.0020.00518.05
8.2.20.0000.00717.66
8.2.10.0050.00317.74
8.2.00.0040.00417.75
8.1.280.0070.01825.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00423.98
8.1.230.0000.01118.98
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00717.11
8.1.190.0000.00817.54
8.1.180.0040.00418.82
8.1.170.0000.01118.71
8.1.160.0040.00422.14
8.1.150.0040.00418.65
8.1.140.0000.00817.39
8.1.130.0000.00717.74
8.1.120.0000.00817.37
8.1.110.0070.00017.49
8.1.100.0030.00317.34
8.1.90.0000.00817.49
8.1.80.0000.00717.46
8.1.70.0070.00017.41
8.1.60.0050.00517.58
8.1.50.0030.00517.54
8.1.40.0040.00417.57
8.1.30.0000.00717.48
8.1.20.0040.00417.63
8.1.10.0040.00417.57
8.1.00.0000.00717.52
8.0.300.0000.00818.77
8.0.290.0040.00416.93
8.0.280.0030.00318.31
8.0.270.0000.00717.28
8.0.260.0000.00716.85
8.0.250.0030.00316.99
8.0.240.0020.00516.96
8.0.230.0030.00316.84
8.0.220.0030.00316.90
8.0.210.0070.00016.85
8.0.200.0000.00616.91
8.0.190.0030.00517.03
8.0.180.0040.00416.94
8.0.170.0040.00416.94
8.0.160.0040.00416.95
8.0.150.0020.00516.79
8.0.140.0020.00516.98
8.0.130.0070.00013.45
8.0.120.0000.00817.00
8.0.110.0040.00416.79
8.0.100.0040.00417.02
8.0.90.0000.00717.07
8.0.80.0060.01016.93
8.0.70.0000.00716.89
8.0.60.0000.00716.94
8.0.50.0000.00716.94
8.0.30.0100.01317.27
8.0.20.0050.01517.40
8.0.10.0040.00417.11
8.0.00.0080.01116.72
7.4.330.0000.00615.01
7.4.320.0070.00016.59
7.4.300.0000.00716.61
7.4.290.0020.00516.43
7.4.280.0000.00716.60
7.4.270.0030.00316.63
7.4.260.0070.00016.59
7.4.250.0000.00716.37
7.4.240.0030.00316.47
7.4.230.0000.00716.70
7.4.220.0040.01516.71
7.4.210.0070.00716.51
7.4.200.0000.00716.40
7.4.190.0000.00716.48
7.4.160.0090.00616.68
7.4.150.0140.00317.40
7.4.140.0080.01017.86
7.4.130.0070.01316.56
7.4.120.0120.00516.44
7.4.110.0090.00916.55
7.4.100.0040.01416.58
7.4.90.0090.00916.39
7.4.80.0140.00419.39
7.4.70.0130.00316.55
7.4.60.0100.00616.55
7.4.50.0040.00416.45
7.4.40.0060.00622.77
7.4.30.0060.00916.66
7.4.00.0080.00014.67
7.3.330.0070.00013.23
7.3.320.0050.00013.27
7.3.310.0050.00216.27
7.3.300.0000.00716.41
7.3.290.0070.00616.35
7.3.280.0080.00916.36
7.3.270.0140.00317.40
7.3.260.0160.00416.38
7.3.250.0110.00616.49
7.3.240.0100.00716.37
7.3.230.0120.00616.59
7.3.210.0030.01416.60
7.3.200.0160.00619.39
7.3.190.0100.00416.45
7.3.180.0090.00916.39
7.3.170.0120.00316.39
7.3.160.0090.01216.57
7.3.120.0120.00614.83
7.2.330.0110.00516.68
7.2.320.0120.00916.38
7.2.310.0120.00916.52
7.2.300.0130.00316.55
7.2.290.0060.01016.54
7.2.60.0000.01016.75
7.2.00.0030.00918.97
7.1.200.0040.01115.48
7.1.100.0040.01118.24
7.1.70.0030.00716.82
7.1.60.0090.01319.82
7.1.50.0000.02216.98
7.1.00.0000.03722.28
7.0.200.0000.00716.50
7.0.140.0070.06722.09
7.0.60.0070.06319.84
7.0.50.0000.05317.88
7.0.40.0100.08720.18
7.0.30.0200.04020.07
7.0.20.0070.05020.22
7.0.10.0300.05020.18
7.0.00.0030.04320.12
5.6.280.0000.07721.11
5.6.210.0070.07020.54
5.6.200.0000.04318.19
5.6.190.0000.04320.52
5.6.180.4500.05020.79
5.6.170.0300.09020.57
5.6.160.0070.03720.46
5.6.150.0030.07718.29
5.6.140.0100.04018.26
5.6.130.0030.04018.28
5.6.120.0130.06721.13
5.6.110.0030.08721.00
5.6.100.0030.08321.04
5.6.90.0130.08020.94
5.6.80.0030.05020.25
5.6.70.0200.04320.50
5.5.350.0370.06720.42
5.5.340.0200.06718.09
5.5.330.0130.05720.28
5.5.320.0300.04720.31
5.5.310.0330.07020.20
5.5.300.0030.08717.94
5.5.290.0100.08018.02
5.5.280.0070.04020.89
5.5.270.0030.05320.90
5.5.260.0100.06320.87
5.5.250.0030.08020.79
5.5.240.0070.04020.15
5.4.450.0830.04719.48
5.4.440.0870.05319.34
5.4.430.0370.04719.65
5.4.420.0670.05319.34
5.4.410.0770.05019.45
5.4.400.0400.04718.50
5.4.390.0470.03718.57
5.4.380.0300.05318.53
5.4.370.0130.05018.85
5.4.360.0170.05018.72
5.4.350.0130.06318.75
5.4.340.0170.05318.60
5.4.320.0060.03512.51
5.4.310.0030.03912.50
5.4.300.0050.03712.50
5.4.290.0080.04912.50
5.4.280.0080.03712.40
5.4.270.0050.03712.40
5.4.260.0100.05018.97
5.4.250.0030.05318.91
5.4.240.0100.05718.78
5.4.230.0230.03718.64
5.4.220.0030.05718.96
5.4.210.0170.04718.95
5.4.200.0030.06018.64
5.4.190.0130.04318.93
5.4.180.0070.05318.94
5.4.170.0030.05718.96
5.4.160.0130.05018.71
5.4.150.0100.05318.78
5.4.140.0030.05716.54
5.4.130.0100.04316.44
5.4.120.0100.04716.52
5.4.110.0030.05316.52
5.4.100.0000.05716.35
5.4.90.0100.04316.39
5.4.80.0100.04716.45
5.4.70.0030.05716.51
5.4.60.0100.04716.51
5.4.50.0070.04716.36
5.4.40.0100.04716.52
5.4.30.0030.05016.44
5.4.20.0130.04016.46
5.4.10.0170.04016.32
5.4.00.0130.04716.02
5.3.290.0070.04012.80
5.3.280.0000.06014.82
5.3.270.0100.05014.63
5.3.260.0130.04714.69
5.3.250.0100.05014.68
5.3.240.0130.04314.51
5.3.230.0030.05314.45
5.3.220.0170.04314.55
5.3.210.0100.04714.75
5.3.200.0100.05314.65
5.3.190.0130.04314.47
5.3.180.0170.04314.73
5.3.170.0130.04714.65
5.3.160.0070.05014.39
5.3.150.0030.06314.55
5.3.140.0000.05714.69
5.3.130.0030.05314.63
5.3.120.0100.04714.54
5.3.110.0130.04714.52
5.3.100.0130.04714.05
5.3.90.0100.04714.00
5.3.80.0100.05013.98
5.3.70.0070.05313.85
5.3.60.0230.04313.91
5.3.50.0030.05014.13
5.3.40.0070.05314.03
5.3.30.0070.05013.98
5.3.20.0030.05013.53
5.3.10.0130.06013.73
5.3.00.0000.05713.61
5.2.170.0130.03311.21
5.2.160.0030.04011.23
5.2.150.0100.03711.04
5.2.140.0030.04310.96
5.2.130.0030.04011.00
5.2.120.0030.04011.16
5.2.110.0030.04311.26
5.2.100.0030.04011.16
5.2.90.0030.04011.10
5.2.80.0100.03711.04
5.2.70.0030.04311.26
5.2.60.0070.03711.12
5.2.50.0070.04011.01
5.2.40.0100.03310.96
5.2.30.0000.04310.95
5.2.20.0030.04011.13
5.2.10.0130.03010.93
5.2.00.0130.03710.80
5.1.60.0030.04710.23
5.1.50.0030.04010.20
5.1.40.0030.0339.89
5.1.30.0070.03310.41
5.1.20.0000.04010.26
5.1.10.0070.03310.04
5.1.00.0100.03010.30
5.0.50.0030.0278.74
5.0.40.0070.0278.47
5.0.30.0030.0408.27
5.0.20.0130.0138.19
5.0.10.0030.0278.27
5.0.00.0070.0378.39
4.4.90.0030.0207.33
4.4.80.0100.0207.33
4.4.70.0030.0207.33
4.4.60.0070.0277.33
4.4.50.0100.0207.33
4.4.40.0070.0307.33
4.4.30.0000.0237.33
4.4.20.0030.0207.33
4.4.10.0000.0237.33
4.4.00.0030.0307.33
4.3.110.0030.0207.33
4.3.100.0000.0207.33
4.3.90.0000.0207.33
4.3.80.0030.0307.33
4.3.70.0030.0207.33
4.3.60.0030.0177.33
4.3.50.0000.0237.33
4.3.40.0030.0307.33
4.3.30.0000.0237.33
4.3.20.0000.0207.33
4.3.10.0000.0237.33
4.3.00.0030.0207.94

preferences:
49.19 ms | 401 KiB | 5 Q