3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'string'; function b($a){ $a = 'bbbb'; } var_dump(b(&$a));

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.320.0070.03718.84
5.4.310.0030.04319.24
5.4.300.0000.03719.14
5.4.290.0000.03719.14
5.4.280.0130.02719.02
5.4.270.0000.03719.05
5.4.260.0030.03318.84
5.4.250.0000.04018.83
5.4.240.0070.03319.30
5.4.230.0000.03719.15
5.4.220.0230.02719.09
5.4.210.0070.03319.16
5.4.200.0000.03719.21
5.4.190.0000.03718.86
5.4.180.0000.03718.99
5.4.170.0170.03019.11
5.4.160.0000.04019.29
5.4.150.0000.04718.84
5.4.140.0000.03716.46
5.4.130.0000.03716.71
5.4.120.0030.03016.30
5.4.110.0000.04316.54
5.4.100.0000.03316.54
5.4.90.0000.04016.36
5.4.80.0030.03316.35
5.4.70.0000.03316.26
5.4.60.0000.03716.38
5.4.50.0100.04016.25
5.4.40.0030.03316.56
5.4.30.0030.05016.56
5.4.20.0000.04316.50
5.4.10.0000.04316.55
5.4.00.0030.05715.77
5.3.290.0030.04714.73
5.3.280.0100.03714.61
5.3.270.0000.07014.61
5.3.260.0000.06714.50
5.3.250.0000.07314.52
5.3.240.0030.07714.82
5.3.230.0100.05714.57
5.3.220.0030.04314.47
5.3.210.0000.04314.66
5.3.200.0070.06314.64
5.3.190.0030.07314.47
5.3.180.0000.05014.54
5.3.170.0030.05314.53
5.3.160.0000.04014.55
5.3.150.0030.07314.48
5.3.140.0000.04714.46
5.3.130.0000.05314.77
5.3.120.0070.06314.53
5.3.110.0000.07314.52
5.3.100.0000.06714.18
5.3.90.0000.04313.96
5.3.80.0030.06714.16
5.3.70.0070.05313.93
5.3.60.0000.05714.08
5.3.50.0100.04713.87
5.3.40.0000.07713.85
5.3.30.0030.07013.81
5.3.20.0000.07713.71
5.3.10.0030.04013.61
5.3.00.0030.04013.71
5.2.170.0030.03012.38
5.2.160.0030.05312.38
5.2.150.0000.05312.38
5.2.140.0070.03312.38
5.2.130.0100.04712.38
5.2.120.0030.03012.38
5.2.110.0030.05012.38
5.2.100.0000.05012.38
5.2.90.0030.05312.38
5.2.80.0030.04012.38
5.2.70.0000.06012.38
5.2.60.0030.05012.38
5.2.50.0000.06712.38
5.2.40.0070.04712.38
5.2.30.0000.04312.38
5.2.20.0030.06012.38
5.2.10.0000.04012.38
5.2.00.0000.05012.38
5.1.60.0000.02712.38
5.1.50.0030.03012.38
5.1.40.0070.05712.38
5.1.30.0000.04712.38
5.1.20.0030.05012.38
5.1.10.0030.03012.38
5.1.00.0030.05012.38
5.0.50.0000.02012.38
5.0.40.0000.02312.38
5.0.30.0030.02712.38
5.0.20.0000.02312.38
5.0.10.0000.02012.38
5.0.00.0000.06712.38
4.4.90.0000.02012.38
4.4.80.0030.02712.38
4.4.70.0030.02012.38
4.4.60.0030.03312.38
4.4.50.0000.01712.38
4.4.40.0070.02312.38
4.4.30.0000.02012.38
4.4.20.0000.03712.38
4.4.10.0000.02012.38
4.4.00.0000.03712.38
4.3.110.0000.02312.38
4.3.100.0070.02312.38
4.3.90.0000.02012.38
4.3.80.0000.03312.38
4.3.70.0070.03012.38
4.3.60.0030.03312.38
4.3.50.0030.02012.38
4.3.40.0070.02712.38
4.3.30.0000.03312.38
4.3.20.0000.03012.38
4.3.10.0030.01312.38
4.3.00.0000.01712.38

preferences:
138.19 ms | 1394 KiB | 7 Q