3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { static $bar = 'baz'; } class baz { static $bat; } 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.63
8.3.50.0130.00622.05
8.3.40.0140.00318.94
8.3.30.0040.01118.68
8.3.20.0040.00420.34
8.3.10.0070.00021.85
8.3.00.0040.00419.57
8.2.180.0120.00416.75
8.2.170.0070.01122.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.32
8.2.120.0040.00426.35
8.2.110.0100.00620.22
8.2.100.0110.00017.93
8.2.90.0040.00419.28
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00819.48
8.2.30.0070.00320.62
8.2.20.0070.00017.76
8.2.10.0040.00418.05
8.2.00.0080.00018.17
8.1.280.0130.00725.92
8.1.270.0060.01018.95
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0100.00023.98
8.1.230.0000.01117.53
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0000.00717.63
8.1.180.0000.00818.10
8.1.170.0080.00018.55
8.1.160.0040.00420.81
8.1.150.0050.00218.93
8.1.140.0050.00319.54
8.1.130.0070.00017.66
8.1.120.0040.00317.35
8.1.110.0040.00417.38
8.1.100.0030.00417.36
8.1.90.0000.00917.42
8.1.80.0000.00817.34
8.1.70.0030.00317.42
8.1.60.0030.00617.54
8.1.50.0030.00517.54
8.1.40.0000.01017.36
8.1.30.0080.00017.66
8.1.20.0000.00817.55
8.1.10.0000.00817.55
8.1.00.0000.00817.39
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.44
8.0.270.0000.00717.18
8.0.260.0030.00317.29
8.0.250.0050.00316.77
8.0.240.0030.00316.96
8.0.230.0030.00316.91
8.0.220.0000.00716.81
8.0.210.0000.00716.73
8.0.200.0060.00016.93
8.0.190.0040.00416.98
8.0.180.0070.00016.82
8.0.170.0080.00016.90
8.0.160.0070.00016.92
8.0.150.0080.00016.91
8.0.140.0000.00716.87
8.0.130.0030.00313.22
8.0.120.0000.00816.71
8.0.110.0050.00316.89
8.0.100.0030.00516.72
8.0.90.0080.00016.93
8.0.80.0110.00616.86
8.0.70.0040.00416.89
8.0.60.0000.00716.70
8.0.50.0000.00816.93
8.0.30.0110.01017.27
8.0.20.0110.00917.40
8.0.10.0000.00716.89
8.0.00.0130.00616.67
7.4.330.0000.00516.67
7.4.320.0030.00316.62
7.4.300.0000.00616.50
7.4.290.0050.00316.42
7.4.280.0080.00016.51
7.4.270.0030.00316.51
7.4.260.0000.00716.39
7.4.250.0040.00416.57
7.4.240.0020.00516.52
7.4.230.0070.00016.57
7.4.220.0090.01216.54
7.4.210.0090.00816.54
7.4.200.0000.00716.34
7.4.160.0120.00416.67
7.4.150.0110.00717.40
7.4.140.0110.01317.86
7.4.130.0110.00816.56
7.4.120.0100.00716.57
7.4.110.0130.00416.43
7.4.100.0070.01016.51
7.4.90.0070.01016.70
7.4.80.0070.01419.39
7.4.70.0070.01016.63
7.4.60.0070.01016.41
7.4.50.0000.01716.30
7.4.40.0030.01416.52
7.4.30.0070.01616.50
7.4.00.0070.01014.98
7.3.330.0030.00313.31
7.3.320.0090.00013.29
7.3.310.0070.00016.24
7.3.300.0030.00316.35
7.3.290.0040.00416.25
7.3.280.0080.00916.29
7.3.270.0070.01117.40
7.3.260.0120.01216.42
7.3.250.0060.01416.47
7.3.240.0070.01316.46
7.3.230.0100.00716.51
7.3.210.0130.00316.34
7.3.200.0070.01016.21
7.3.190.0080.00816.25
7.3.180.0040.01716.29
7.3.170.0070.01016.35
7.3.160.0040.01216.67
7.2.330.0100.01316.70
7.2.320.0160.00716.63
7.2.310.0030.01316.64
7.2.300.0000.01916.54
7.2.290.0030.01316.46
7.2.60.0070.00716.79
7.2.00.0070.00419.04
7.1.200.0070.00715.70
7.1.100.0000.01118.08
7.1.70.0030.00617.21
7.1.60.0060.01919.13
7.1.50.0030.00816.86
7.1.00.0100.06722.37
7.0.200.0000.01016.47
7.0.60.0000.04319.82
7.0.50.0070.07017.87
7.0.40.0130.07720.22
7.0.30.0470.07020.20
7.0.20.0300.05320.30
7.0.10.0130.08020.15
7.0.00.0070.08020.10
5.6.280.0030.06321.05
5.6.210.0100.07720.48
5.6.200.0130.06318.20
5.6.190.0130.08320.61
5.6.180.0500.07020.39
5.6.170.0270.03320.62
5.6.160.0070.08320.56
5.6.150.0070.06318.18
5.6.140.0030.04718.14
5.6.130.0030.08718.26
5.6.120.0100.06321.00
5.6.110.0170.05720.91
5.6.100.0100.04721.01
5.6.90.0100.03720.98
5.6.80.0170.07320.41
5.5.350.0170.03720.33
5.5.340.0070.08717.97
5.5.330.0130.07320.27
5.5.320.0000.08320.31
5.5.310.0230.05720.20
5.5.300.0000.08317.96
5.5.290.0030.08718.07
5.5.280.0100.06720.80
5.5.270.0100.08320.95
5.5.260.0130.07720.89
5.5.250.0100.05020.70
5.5.240.0100.08020.15

preferences:
73.33 ms | 401 KiB | 5 Q