3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'hi'; $url $= $test; echo $url."\n"; echo $test."\n"; $url = 'bob'; echo $url."\n"; echo $test."\n";

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.290.0090.04312.49
5.4.280.0060.04312.39
5.4.270.0210.06512.39
5.4.260.0090.05212.39
5.4.250.0100.06812.39
5.4.240.0160.09312.39
5.4.230.0120.06312.38
5.4.220.0120.04812.38
5.4.210.0110.04912.38
5.4.200.0100.05112.38
5.4.190.0060.05412.38
5.4.180.0100.05012.38
5.4.170.0070.04012.38
5.4.160.0070.04212.38
5.4.150.0080.04012.38
5.4.140.0090.04412.07
5.4.130.0110.03512.05
5.4.120.0060.04212.02
5.4.110.0080.03712.02
5.4.100.0040.04112.01
5.4.90.0090.03812.02
5.4.80.0070.04412.01
5.4.70.0070.03912.00
5.4.60.0060.03712.00
5.4.50.0050.03612.01
5.4.40.0070.03512.00
5.4.30.0080.03411.99
5.4.20.0050.03811.98
5.4.10.0060.03711.99
5.4.00.0100.03411.48
5.3.280.0060.03912.71
5.3.270.0030.04212.73
5.3.260.0100.03612.72
5.3.250.0080.03612.72
5.3.240.0080.03812.72
5.3.230.0070.03812.71
5.3.220.0090.03612.68
5.3.210.0100.04112.68
5.3.200.0060.04312.68
5.3.190.0080.04612.68
5.3.180.0090.03512.67
5.3.170.0060.04212.67
5.3.160.0070.03712.68
5.3.150.0080.04012.67
5.3.140.0070.04312.66
5.3.130.0090.03612.66
5.3.120.0070.04012.66
5.3.110.0100.05012.66
5.3.100.0090.06212.12
5.3.90.0070.05312.09
5.3.80.0060.05212.07
5.3.70.0080.05112.08
5.3.60.0070.05112.07
5.3.50.0080.06912.00
5.3.40.0060.04412.00
5.3.30.0070.03511.95
5.3.20.0080.03611.73
5.3.10.0060.03611.70
5.3.00.0040.04011.68
5.2.170.0050.0319.18
5.2.160.0080.0289.18
5.2.150.0040.0349.18
5.2.140.0040.0339.18
5.2.130.0110.0369.14
5.2.120.0060.0399.14
5.2.110.0120.0579.15
5.2.100.0010.0379.14
5.2.90.0050.0329.14
5.2.80.0060.0329.14
5.2.70.0080.0329.14
5.2.60.0080.0529.09
5.2.50.0090.0409.06
5.2.40.0070.0399.03
5.2.30.0080.0439.02
5.2.20.0100.0389.00
5.2.10.0090.0408.93
5.2.00.0080.0668.79
5.1.60.0100.0328.06
5.1.50.0070.0258.06
5.1.40.0080.0488.05
5.1.30.0080.0348.40
5.1.20.0050.0328.42
5.1.10.0060.0268.14
5.1.00.0040.0408.14
5.0.50.0030.0306.62
5.0.40.0040.0296.48
5.0.30.0040.0466.29
5.0.20.0030.0286.26
5.0.10.0030.0286.24
5.0.00.0020.0366.23
4.4.90.0060.0184.78
4.4.80.0060.0334.75
4.4.70.0070.0244.76
4.4.60.0040.0164.76
4.4.50.0030.0174.77
4.4.40.0060.0244.71
4.4.30.0040.0174.76
4.4.20.0030.0154.85
4.4.10.0020.0164.85
4.4.00.0020.0284.76
4.3.110.0060.0234.67
4.3.100.0040.0164.66
4.3.90.0040.0144.63
4.3.80.0020.0264.59
4.3.70.0030.0144.63
4.3.60.0060.0144.63
4.3.50.0030.0234.63
4.3.40.0040.0284.53
4.3.30.0030.0163.28
4.3.20.0010.0183.26
4.3.10.0000.0183.21
4.3.00.0100.02016.16

preferences:
156.7 ms | 1394 KiB | 7 Q