3v4l.org

run code in 300+ PHP versions simultaneously
<?php $telefons=array( 'matteo'=>'12345', 'roger'=>'87654', 'giampaolo'=>'8738982' ); foreach ($telefons as $nom=>$numero) { echo "El telèfon de $nom és $numero\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.270.0100.05718.94
5.4.260.0070.05718.67
5.4.250.0030.08018.90
5.4.240.0100.05318.94
5.4.230.0130.05318.84
5.4.220.0200.06718.77
5.4.210.0100.05018.80
5.4.200.0100.05718.96
5.4.190.0130.07718.79
5.4.180.0100.07718.94
5.4.170.0070.05319.02
5.4.160.0070.05718.98
5.4.150.0030.06019.01
5.4.140.0070.06716.55
5.4.130.0000.05316.30
5.4.120.0070.05316.56
5.4.110.0070.06016.57
5.4.100.0130.06016.41
5.4.90.0130.04316.55
5.4.80.0100.06316.48
5.4.70.0100.07316.46
5.4.60.0230.05016.36
5.4.50.0030.05016.45
5.4.40.0030.07016.55
5.4.30.0030.06716.65
5.4.20.0070.04716.30
5.4.10.0100.07316.52
5.4.00.0000.06315.83
5.3.280.0070.05314.62
5.3.270.0030.05314.62
5.3.260.0100.05014.63
5.3.250.0100.06714.53
5.3.240.0100.04714.48
5.3.230.0030.05314.56
5.3.220.0070.06014.52
5.3.210.0130.07314.66
5.3.200.0200.05714.34
5.3.190.0100.05014.36
5.3.180.0100.07314.58
5.3.170.0130.06014.58
5.3.160.0030.07714.60
5.3.150.0070.06014.42
5.3.140.0100.06314.45
5.3.130.0130.05014.32
5.3.120.0130.07314.25
5.3.110.0070.06014.55
5.3.100.0100.05314.04
5.3.90.0070.05713.87
5.3.80.0030.06313.91
5.3.70.0170.06014.02
5.3.60.0130.06313.78
5.3.50.0130.04013.96
5.3.40.0030.05313.96
5.3.30.0130.05013.94
5.3.20.0030.05013.61
5.3.10.0100.06713.57
5.3.00.0070.05313.73
5.2.170.0030.06010.98
5.2.160.0100.05010.98
5.2.150.0070.06011.17
5.2.140.0000.04711.16
5.2.130.0130.05011.12
5.2.120.0070.04011.03
5.2.110.0030.04310.98
5.2.100.0000.05311.20
5.2.90.0030.04011.20
5.2.80.0130.04010.99
5.2.70.0030.06710.84
5.2.60.0070.05711.04
5.2.50.0100.04711.04
5.2.40.0000.04310.92
5.2.30.0000.05310.81
5.2.20.0030.06010.98
5.2.10.0070.04310.78
5.2.00.0030.04310.80
5.1.60.0070.04010.23
5.1.50.0100.04010.15
5.1.40.0030.0439.83
5.1.30.0030.03710.34
5.1.20.0030.04310.57
5.1.10.0130.02710.15
5.1.00.0070.0379.92
5.0.50.0000.0308.60
5.0.40.0030.0278.43
5.0.30.0030.0438.37
5.0.20.0000.0338.23
5.0.10.0130.0308.14
5.0.00.0070.0508.16
4.4.90.0000.0236.32
4.4.80.0070.0236.32
4.4.70.0030.0206.32
4.4.60.0000.0276.32
4.4.50.0100.0176.32
4.4.40.0000.0406.32
4.4.30.0100.0176.32
4.4.20.0070.0176.32
4.4.10.0100.0176.32
4.4.00.0000.0476.32
4.3.110.0030.0206.32
4.3.100.0030.0276.32
4.3.90.0000.0336.32
4.3.80.0070.0376.32
4.3.70.0100.0236.32
4.3.60.0000.0236.32
4.3.50.0030.0206.32
4.3.40.0030.0406.32
4.3.30.0000.0306.32
4.3.20.0030.0206.32
4.3.10.0000.0236.32
4.3.00.0030.0276.88

preferences:
144.15 ms | 1394 KiB | 7 Q