3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { static $bar = 'baz'; } class baz { static $bat = 'Hello World'; } baz::$bat = function () { echo "Hello World"; }; $foo = 'foo'; ($foo::$bar::$bat)();

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.0070.00716.75
8.3.50.0100.00822.17
8.3.40.0070.01018.79
8.3.30.0110.00418.84
8.3.20.0040.00420.21
8.3.10.0060.00321.76
8.3.00.0080.00019.59
8.2.180.0120.00616.50
8.2.170.0040.01122.96
8.2.160.0030.01020.53
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0030.00519.20
8.2.120.0050.00326.35
8.2.110.0100.00021.01
8.2.100.0080.00417.78
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0060.00317.25
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0000.00821.19
8.2.30.0000.01020.62
8.2.20.0040.00417.75
8.2.10.0000.00818.14
8.2.00.0030.00518.12
8.1.280.0070.00725.92
8.1.270.0120.00318.87
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00622.14
8.1.230.0080.00418.80
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.66
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0000.00720.64
8.1.150.0000.00718.94
8.1.140.0040.00419.54
8.1.130.0030.00317.71
8.1.120.0070.00017.49
8.1.110.0050.00517.34
8.1.100.0000.00717.45
8.1.90.0080.00017.45
8.1.80.0000.00717.42
8.1.70.0070.00017.29
8.1.60.0050.00517.63
8.1.50.0030.00517.42
8.1.40.0070.00417.33
8.1.30.0000.00817.50
8.1.20.0040.00417.50
8.1.10.0000.00817.55
8.1.00.0030.00617.55
8.0.300.0000.00718.77
8.0.290.0030.00516.88
8.0.280.0030.00318.35
8.0.270.0030.00317.17
8.0.260.0060.00017.14
8.0.250.0000.00616.79
8.0.240.0030.00316.75
8.0.230.0070.00016.82
8.0.220.0000.00716.73
8.0.210.0000.00816.71
8.0.200.0030.00316.95
8.0.190.0000.00816.96
8.0.180.0040.00416.90
8.0.170.0000.00716.89
8.0.160.0000.00716.86
8.0.150.0040.00416.86
8.0.140.0030.00316.81
8.0.130.0030.00313.27
8.0.120.0050.00316.85
8.0.110.0000.00816.89
8.0.100.0040.00416.91
8.0.90.0030.00416.93
8.0.80.0060.01016.88
8.0.70.0040.00416.98
8.0.60.0080.00016.83
8.0.50.0030.00316.73
8.0.30.0150.00617.21
8.0.20.0110.00817.40
8.0.10.0040.00416.89
8.0.00.0050.01416.81
7.4.330.0050.00016.76
7.4.320.0070.00016.51
7.4.300.0040.00416.55
7.4.290.0000.00816.48
7.4.280.0060.00316.54
7.4.270.0000.00616.39
7.4.260.0030.00316.55
7.4.250.0040.00416.49
7.4.240.0040.00416.45
7.4.230.0030.00316.68
7.4.220.0100.01116.67
7.4.210.0050.01116.47
7.4.200.0000.00816.59
7.4.160.0070.00716.35
7.4.150.0150.00417.40
7.4.140.0110.01417.86
7.4.130.0050.01316.54
7.4.120.0110.00616.56
7.4.110.0090.01016.43
7.4.100.0060.01016.45
7.4.90.0100.00716.52
7.4.80.0100.01319.39
7.4.70.0070.01016.52
7.4.60.0030.01416.44
7.4.50.0050.00916.37
7.4.40.0120.00616.37
7.4.30.0090.01216.68
7.4.00.0130.00314.78
7.3.330.0000.00513.32
7.3.320.0000.00713.40
7.3.310.0000.00716.33
7.3.300.0060.00016.16
7.3.290.0030.00316.31
7.3.280.0100.00916.26
7.3.270.0090.00917.40
7.3.260.0090.00916.39
7.3.250.0070.01116.51
7.3.240.0090.00816.27
7.3.230.0090.00916.51
7.3.210.0150.00316.49
7.3.200.0080.00816.36
7.3.190.0140.00316.55
7.3.180.0060.01616.52
7.3.170.0060.01016.27
7.3.160.0000.01516.54
7.2.330.0120.01216.55
7.2.320.0100.01416.73
7.2.310.0060.01216.82
7.2.300.0140.00316.29
7.2.290.0140.00716.71
7.2.60.0040.00816.78
7.2.00.0040.01119.22
7.1.200.0030.00715.47
7.1.100.0180.00318.08
7.1.70.0030.00617.22
7.1.60.0120.01219.13
7.1.50.0120.00916.83
7.1.00.0070.07322.41
7.0.200.0050.00316.71
7.0.60.0070.04019.95
7.0.50.0070.06317.88
7.0.40.0130.09320.04
7.0.30.0130.08720.34
7.0.20.0300.07720.33
7.0.10.0100.08720.26
7.0.00.0100.09020.09
5.6.280.0070.06321.16
5.6.210.0070.08020.73
5.6.200.0130.05718.19
5.6.190.0070.07720.42
5.6.180.0330.04020.33
5.6.170.0130.04320.48
5.6.160.0100.08020.54
5.6.150.0100.08318.18
5.6.140.0100.08018.19
5.6.130.0070.08018.19
5.6.120.0130.03721.00
5.6.110.0030.04720.96
5.6.100.0100.06020.98
5.6.90.0170.04320.95
5.6.80.0030.06320.36
5.5.350.0070.03320.50
5.5.340.0130.05318.09
5.5.330.0100.04320.31
5.5.320.0100.07320.21
5.5.310.0400.07020.23
5.5.300.0000.04317.95
5.5.290.0170.07318.08
5.5.280.0100.04320.90
5.5.270.0130.05720.76
5.5.260.0100.04020.84
5.5.250.0100.07320.78
5.5.240.0070.06720.19

preferences:
54.14 ms | 401 KiB | 5 Q