3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Client { protected static $_events = [ 'event:trigger', function() {} ]; public foo() { $boo = function(){}; $d = ['d', function(){}]; } } $client = new Client; echo "Hello World!";

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)
5.4.260.0030.04012.38
5.4.250.0050.04712.37
5.4.240.0060.04212.38
5.4.230.0130.04412.37
5.4.220.0060.03812.36
5.4.210.0050.03612.37
5.4.200.0060.03712.37
5.4.190.0050.03512.36
5.4.180.0070.03312.36
5.4.170.0050.03612.37
5.4.160.0030.03812.36
5.4.150.0050.04612.36
5.4.140.0090.03512.05
5.4.130.0010.04012.03
5.4.120.0070.03812.00
5.4.110.0040.04412.00
5.4.100.0030.05211.99
5.4.90.0090.04111.99
5.4.80.0030.03911.99
5.4.70.0050.03611.99
5.4.60.0090.04711.99
5.4.50.0110.05011.99
5.4.40.0070.04811.97
5.4.30.0110.04311.97
5.4.20.0070.03211.97
5.4.10.0050.03511.97
5.4.00.0050.03611.46
5.3.280.0090.03412.71
5.3.270.0060.03812.73
5.3.260.0020.04212.72
5.3.250.0070.03712.71
5.3.240.0060.03712.72
5.3.230.0060.03712.71
5.3.220.0050.03712.68
5.3.210.0070.03812.68
5.3.200.0050.03812.68
5.3.190.0100.05012.68
5.3.180.0040.04112.68
5.3.170.0050.04012.67
5.3.160.0090.03412.68
5.3.150.0040.03912.68
5.3.140.0070.03812.66
5.3.130.0050.05412.66
5.3.120.0040.04712.66
5.3.110.0070.04812.66
5.3.100.0090.04512.12
5.3.90.0050.03912.08
5.3.80.0100.04112.07
5.3.70.0060.03712.07
5.3.60.0050.03912.06
5.3.50.0050.03812.00
5.3.40.0040.03812.00
5.3.30.0050.03511.94
5.3.20.0020.03811.72
5.3.10.0070.04811.68
5.3.00.0090.04411.66
5.2.170.0060.0299.17
5.2.160.0030.0339.17
5.2.150.0090.0329.17
5.2.140.0040.0379.16
5.2.130.0040.0299.13
5.2.120.0060.0279.13
5.2.110.0050.0279.13
5.2.100.0030.0299.13
5.2.90.0040.0299.13
5.2.80.0050.0309.13
5.2.70.0020.0349.12
5.2.60.0060.0289.08
5.2.50.0030.0329.05
5.2.40.0030.0309.02
5.2.30.0060.0309.00
5.2.20.0080.0268.99
5.2.10.0050.0288.90
5.2.00.0060.0278.75
5.1.60.0060.0228.04
5.1.50.0030.0268.04
5.1.40.0020.0268.03
5.1.30.0050.0258.36
5.1.20.0040.0278.40
5.1.10.0060.0348.13
5.1.00.0070.0348.12
5.0.50.0050.0276.59
5.0.40.0090.0206.45
5.0.30.0060.0316.27
5.0.20.0030.0206.23
5.0.10.0030.0286.21
5.0.00.0030.0336.20
4.4.90.0020.0194.78
4.4.80.0100.0324.76
4.4.70.0070.0334.76
4.4.60.0070.0174.76
4.4.50.0020.0284.77
4.4.40.0020.0364.71
4.4.30.0040.0194.75
4.4.20.0050.0194.85
4.4.10.0030.0224.85
4.4.00.0040.0294.76
4.3.110.0010.0174.67
4.3.100.0040.0144.66
4.3.90.0040.0134.64
4.3.80.0040.0244.58
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0020.0174.62
4.3.40.0050.0294.54
4.3.30.0020.0163.29
4.3.20.0020.0213.26
4.3.10.0020.0173.23
4.3.00.0100.0207.06

preferences:
142.92 ms | 1394 KiB | 7 Q