3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const FOO = 1 + 1; const BAR = 1 << 1; const GREETING = "HELLO"; const BAZ = self::GREETING." 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.280.0080.03512.37
5.4.270.0070.03612.38
5.4.260.0090.04312.38
5.4.250.0080.04812.37
5.4.240.0100.03812.38
5.4.230.0090.04812.36
5.4.220.0060.04312.36
5.4.210.0050.03812.37
5.4.200.0090.03712.36
5.4.190.0060.04112.36
5.4.180.0110.03412.36
5.4.170.0070.04212.37
5.4.160.0090.03512.36
5.4.150.0070.04212.36
5.4.140.0020.04212.05
5.4.130.0070.03912.03
5.4.120.0110.03812.00
5.4.110.0140.06211.99
5.4.100.0100.03912.00
5.4.90.0110.06311.99
5.4.80.0220.07412.00
5.4.70.0110.03312.00
5.4.60.0150.06011.99
5.4.50.0050.03912.00
5.4.40.0120.03411.98
5.4.30.0090.04311.97
5.4.20.0230.08211.97
5.4.10.0170.07211.97
5.4.00.0080.04511.47
5.3.280.0080.05312.71
5.3.270.0100.04812.72
5.3.260.0110.04412.72
5.3.250.0100.05512.71
5.3.240.0110.05312.72
5.3.230.0100.05312.71
5.3.220.0080.05512.68
5.3.210.0140.04812.68
5.3.200.0090.04012.68
5.3.190.0090.03812.68
5.3.180.0060.04012.67
5.3.170.0100.03612.67
5.3.160.0070.03812.67
5.3.150.0190.06412.67
5.3.140.0100.03912.66
5.3.130.0160.06712.66
5.3.120.0120.05312.66
5.3.110.0070.04312.66
5.3.100.0110.06412.12
5.3.90.0110.05012.09
5.3.80.0090.03912.07
5.3.70.0090.03612.07
5.3.60.0050.04012.06
5.3.50.0090.04812.00
5.3.40.0100.03812.00
5.3.30.0080.03811.95
5.3.20.0070.05411.73
5.3.10.0130.03811.70
5.3.00.0080.03611.68
5.2.170.0030.0349.18
5.2.160.0090.0289.18
5.2.150.0060.0329.18
5.2.140.0050.0339.17
5.2.130.0020.0349.13
5.2.120.0070.0299.14
5.2.110.0040.0329.14
5.2.100.0070.0289.14
5.2.90.0040.0339.14
5.2.80.0050.0339.14
5.2.70.0100.0299.14
5.2.60.0080.0309.09
5.2.50.0070.0319.07
5.2.40.0080.0299.03
5.2.30.0080.0339.01
5.2.20.0070.0329.00
5.2.10.0050.0338.91
5.2.00.0090.0338.78
5.1.60.0080.0328.06
5.1.50.0130.0408.06
5.1.40.0080.0278.05
5.1.30.0090.0268.39
5.1.20.0080.0298.41
5.1.10.0070.0298.14
5.1.00.0060.0298.14
5.0.50.0060.0216.62
5.0.40.0040.0216.47
5.0.30.0040.0356.28
5.0.20.0040.0236.25
5.0.10.0070.0206.23
5.0.00.0100.0456.22
4.4.90.0090.0244.78
4.4.80.0050.0504.76
4.4.70.0100.0384.75
4.4.60.0110.0784.75
4.4.50.0060.0194.77
4.4.40.0090.0454.71
4.4.30.0180.0324.76
4.4.20.0060.0224.84
4.4.10.0050.0384.84
4.4.00.0030.0384.76
4.3.110.0040.0374.67
4.3.100.0050.0234.66
4.3.90.0060.0664.64
4.3.80.0120.0634.58
4.3.70.0060.0184.63
4.3.60.0030.0244.63
4.3.50.0230.0464.63
4.3.40.0230.0714.54
4.3.30.0170.0613.28
4.3.20.0080.0373.26
4.3.10.0060.0183.23
4.3.00.0030.0276.82

preferences:
143.93 ms | 1394 KiB | 7 Q