3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = 0; for ($i=1; $i<=10; $i++) { echo "+",$i+; $total = $total + $i; } echo "=",$total; return $total; ?>

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.6.120.0100.08020.95
5.6.110.0100.03720.98
5.6.100.0070.08321.10
5.6.90.0030.04020.98
5.6.80.0200.07020.43
5.5.280.0130.04720.87
5.5.270.0100.05020.75
5.5.260.0130.08320.86
5.5.250.0070.08020.46
5.5.240.0030.04720.12
5.4.440.0730.07319.64
5.4.430.0830.04319.53
5.4.420.0630.05319.31
5.4.410.0630.05319.42
5.4.400.0700.06319.12
5.4.390.0500.05318.90
5.4.380.0570.05319.07
5.4.370.0600.05718.95
5.4.360.0670.05719.21
5.4.350.0630.04718.88
5.4.340.0700.05319.22
5.4.320.0800.06718.88
5.4.310.0300.04319.22
5.4.300.0330.04019.15
5.4.290.0400.05719.11
5.4.280.0570.05718.88
5.4.270.0600.04719.27
5.4.260.0670.04319.25
5.4.250.0600.05019.31
5.4.240.0530.05319.14
5.4.230.0600.05019.25
5.4.220.0600.05718.96
5.4.210.0630.05019.26
5.4.200.0670.04316.66
5.4.190.0600.05319.13
5.4.180.0570.06019.14
5.4.170.0630.05319.26
5.4.160.0770.04019.10
5.4.150.0730.04019.27
5.4.140.0570.05316.45
5.4.130.0600.04316.24
5.4.120.0570.05316.25
5.4.110.0570.05016.40
5.4.100.0700.05016.66
5.4.90.0600.05316.57
5.4.80.0530.05716.23
5.4.70.0670.04316.16
5.4.60.0600.05316.31
5.4.50.0670.04316.59
5.4.40.0670.04716.44
5.4.30.0530.05016.54
5.4.20.0670.04716.43
5.4.10.0570.05316.63
5.4.00.0570.06015.76
5.3.290.0600.05314.61
5.3.280.0570.04714.39
5.3.270.0570.05014.59
5.3.260.0470.06014.63
5.3.250.0530.05714.45
5.3.240.0470.05314.44
5.3.230.0600.05314.61
5.3.220.0430.06014.45
5.3.210.0470.05714.48
5.3.200.0470.05314.44
5.3.190.0430.05714.45
5.3.180.0530.04714.54
5.3.170.0570.05014.43
5.3.160.0530.04714.54
5.3.150.0500.05014.43
5.3.140.0430.05314.49
5.3.130.0500.06714.34
5.3.120.0670.04314.39
5.3.110.0500.05314.37
5.3.100.0570.04713.90
5.3.90.0500.05013.93
5.3.80.0500.05013.99
5.3.70.0500.04713.99
5.3.60.0500.04713.84
5.3.50.0600.04013.73
5.3.40.0430.05713.78
5.3.30.0570.04313.91
5.3.20.0630.04313.66
5.3.10.0530.04313.54
5.3.00.0600.05013.47
5.2.170.0500.04011.08
5.2.160.0430.04710.98
5.2.150.0530.04311.09
5.2.140.0470.04311.07
5.2.130.0570.03311.11
5.2.120.0530.03711.02
5.2.110.0470.04011.17
5.2.100.0500.04010.95
5.2.90.0500.03711.10
5.2.80.0500.04011.17
5.2.70.0630.03710.98
5.2.60.0400.04310.93
5.2.50.0400.04010.79
5.2.40.0430.03711.03
5.2.30.0370.04310.97
5.2.20.0370.04310.90
5.2.10.0430.04010.71
5.2.00.0370.04310.64
5.1.60.0300.04310.02
5.1.50.0370.0339.87
5.1.40.0500.0309.90
5.1.30.0400.03310.29
5.1.20.0370.03710.25
5.1.10.0370.0379.95
5.1.00.0370.03710.14
5.0.50.0230.0238.48
5.0.40.0170.0308.41
5.0.30.0200.0438.30
5.0.20.0330.0308.09
5.0.10.0330.0238.16
5.0.00.0230.0478.05
4.4.90.0200.0275.74
4.4.80.0170.0235.84
4.4.70.0170.0235.76
4.4.60.0230.0175.75
4.4.50.0170.0205.77
4.4.40.0130.0375.75
4.4.30.0170.0205.79
4.4.20.0100.0275.87
4.4.10.0200.0205.83
4.4.00.0170.0335.76
4.3.110.0100.0275.82
4.3.100.0200.0175.70
4.3.90.0070.0235.64
4.3.80.0170.0335.64
4.3.70.0200.0175.77
4.3.60.0130.0275.64
4.3.50.0200.0205.68
4.3.40.0170.0375.74
4.3.30.0070.0234.57
4.3.20.0100.0234.38
4.3.10.0100.0204.34
4.3.00.0030.0207.35

preferences:
148.39 ms | 1394 KiB | 7 Q