3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foobar = 1234; class foobar{ const FOO = $foobar; }

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.350.0070.03612.03
5.4.340.0060.04112.02
5.4.320.0050.05312.52
5.4.310.0160.07612.50
5.4.300.0100.03812.51
5.4.290.0130.04212.50
5.4.280.0110.06912.41
5.4.270.0130.05812.41
5.4.260.0190.06512.40
5.4.250.0140.08012.40
5.4.240.0050.04512.40
5.4.230.0070.05212.40
5.4.220.0080.04512.39
5.4.210.0060.05712.39
5.4.200.0050.04612.40
5.4.190.0080.04312.39
5.4.180.0140.05712.39
5.4.170.0140.04512.40
5.4.160.0110.04812.39
5.4.150.0110.05512.39
5.4.140.0090.04912.08
5.4.130.0040.04612.07
5.4.120.0060.04712.03
5.4.110.0050.03812.03
5.4.100.0050.03712.03
5.4.90.0070.03712.02
5.4.80.0070.03912.02
5.4.70.0050.03912.02
5.4.60.0070.04112.02
5.4.50.0090.04912.02
5.4.40.0100.04612.00
5.4.30.0130.04712.01
5.4.20.0110.04812.00
5.4.10.0060.04312.00
5.4.00.0060.04211.50
5.3.290.0110.05012.80
5.3.280.0070.05012.71
5.3.270.0080.05112.73
5.3.260.0060.04712.72
5.3.250.0110.04812.72
5.3.240.0100.05312.72
5.3.230.0180.05612.71
5.3.220.0120.05412.68
5.3.210.0140.07112.68
5.3.200.0090.04212.68
5.3.190.0080.04612.68
5.3.180.0080.03812.67
5.3.170.0280.09412.67
5.3.160.0180.05312.67
5.3.150.0100.04812.67
5.3.140.0120.04912.66
5.3.130.0230.09012.66
5.3.120.0200.07212.66
5.3.110.0190.09312.66
5.3.100.0140.05912.12
5.3.90.0170.08112.10
5.3.80.0180.07912.09
5.3.70.0170.12012.09
5.3.60.0140.06712.07
5.3.50.0190.07612.02
5.3.40.0110.09912.02
5.3.30.0040.04511.98
5.3.20.0070.03711.76
5.3.10.0090.04711.73
5.3.00.0170.09111.71
5.2.170.0070.0359.22
5.2.160.0070.0699.21
5.2.150.0090.0599.22
5.2.140.0110.0339.21
5.2.130.0050.0299.17
5.2.120.0070.0459.17
5.2.110.0130.0469.18
5.2.100.0130.0429.17
5.2.90.0150.0469.18
5.2.80.0110.0629.17
5.2.70.0060.0419.17
5.2.60.0100.0399.13
5.2.50.0090.0539.10
5.2.40.0070.0299.07
5.2.30.0130.0429.04
5.2.20.0030.0359.03
5.2.10.0070.0268.94
5.2.00.0070.0298.80
5.1.60.0110.0218.08
5.1.50.0030.0298.08
5.1.40.0050.0308.06
5.1.30.0070.0318.41
5.1.20.0060.0328.43
5.1.10.0070.0308.16
5.1.00.0080.0328.16
5.0.50.0040.0256.63
5.0.40.0040.0226.50
5.0.30.0050.0336.31
5.0.20.0050.0226.28
5.0.10.0030.0226.26
5.0.00.0020.0356.25
4.4.90.0030.0184.78
4.4.80.0040.0154.75
4.4.70.0030.0164.75
4.4.60.0070.0134.75
4.4.50.0050.0154.77
4.4.40.0070.0224.71
4.4.30.0010.0224.76
4.4.20.0040.0204.85
4.4.10.0060.0204.85
4.4.00.0040.0314.76
4.3.110.0040.0164.67
4.3.100.0050.0144.67
4.3.90.0020.0194.63
4.3.80.0040.0274.58
4.3.70.0040.0134.63
4.3.60.0040.0144.63
4.3.50.0030.0184.63
4.3.40.0050.0214.54
4.3.30.0050.0163.30
4.3.20.0030.0173.28
4.3.10.0000.0183.23
4.3.00.0070.0237.70

preferences:
148.29 ms | 1394 KiB | 7 Q