3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '1234567890'; print $text[0:3];

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.380.0200.05018.79
5.4.370.0170.05318.62
5.4.360.0300.06018.46
5.4.350.0230.06018.75
5.4.340.0270.04318.80
5.4.320.0230.05018.61
5.4.310.0170.06318.89
5.4.300.0170.05318.80
5.4.290.0330.05018.78
5.4.280.0200.06318.55
5.4.270.0200.05018.58
5.4.260.0170.05718.80
5.4.250.0300.04318.68
5.4.240.0170.05718.50
5.4.230.0030.07018.45
5.4.220.0100.06018.61
5.4.210.0170.05318.61
5.4.200.0130.05316.51
5.4.190.0200.05018.79
5.4.180.0130.05718.60
5.4.170.0170.05718.45
5.4.160.0200.05018.57
5.4.150.0200.05018.82
5.4.140.0230.04316.33
5.4.130.0330.04016.20
5.4.120.0170.05016.25
5.4.110.0170.04716.16
5.4.100.0170.05016.41
5.4.90.0200.05016.28
5.4.80.0230.04316.29
5.4.70.0170.05316.41
5.4.60.0130.05316.26
5.4.50.0270.04016.27
5.4.40.0300.03716.20
5.4.30.0170.05016.28
5.4.20.0130.05716.40
5.4.10.0170.05016.40
5.4.00.0070.05715.78
5.3.290.0170.05314.67
5.3.280.0230.06314.57
5.3.270.0300.06014.68
5.3.260.0130.06014.64
5.3.250.0230.04714.59
5.3.240.0200.05314.70
5.3.230.0270.04314.49
5.3.220.0100.05714.46
5.3.210.0170.05314.64
5.3.200.0270.04014.57
5.3.190.0270.04314.46
5.3.180.0170.05014.60
5.3.170.0300.04014.55
5.3.160.0230.04714.48
5.3.150.0170.05014.54
5.3.140.0170.05014.61
5.3.130.0200.05014.60
5.3.120.0230.05314.64
5.3.110.0130.06314.53
5.3.100.0130.06713.95
5.3.90.0270.04314.07
5.3.80.0170.05314.00
5.3.70.0230.06314.01
5.3.60.0170.07013.98
5.3.50.0130.05313.84
5.3.40.0300.05713.86
5.3.30.0330.05013.94
5.3.20.0100.06013.60
5.3.10.0070.05713.59
5.3.00.0070.06013.63
5.2.170.0230.04011.13
5.2.160.0130.04311.14
5.2.150.0100.04311.28
5.2.140.0200.03711.14
5.2.130.0130.03711.07
5.2.120.0100.04011.23
5.2.110.0130.04011.14
5.2.100.0200.03311.06
5.2.90.0170.04011.14
5.2.80.0130.04311.02
5.2.70.0200.03711.01
5.2.60.0100.04311.04
5.2.50.0100.05011.04
5.2.40.0070.05710.95
5.2.30.0170.03710.90
5.2.20.0130.05711.09
5.2.10.0100.04710.96
5.2.00.0070.04710.70
5.1.60.0100.03310.01
5.1.50.0100.03310.03
5.1.40.0070.03710.09
5.1.30.0130.03310.34
5.1.20.0100.03710.42
5.1.10.0130.03310.10
5.1.00.0030.04310.16
5.0.50.0130.0338.66
5.0.40.0030.0308.52
5.0.30.0030.0478.32
5.0.20.0070.0308.23
5.0.10.0070.0308.20
5.0.00.0070.0438.19
4.4.90.0070.0205.89
4.4.80.0000.0275.92
4.4.70.0070.0205.90
4.4.60.0100.0205.90
4.4.50.0030.0235.83
4.4.40.0030.0375.95
4.4.30.0070.0205.87
4.4.20.0070.0205.93
4.4.10.0070.0205.95
4.4.00.0100.0305.89
4.3.110.0100.0175.85
4.3.100.0030.0235.86
4.3.90.0030.0235.79
4.3.80.0100.0305.87
4.3.70.0070.0205.79
4.3.60.0030.0235.80
4.3.50.0070.0205.80
4.3.40.0000.0375.82
4.3.30.0070.0234.59
4.3.20.0070.0234.60
4.3.10.0100.0204.52
4.3.00.0000.02710.29

preferences:
147.54 ms | 1394 KiB | 7 Q