3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(substr('tester', -2);

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.260.0030.05718.82
5.4.250.0030.05718.99
5.4.240.0170.06018.74
5.4.230.0070.05318.93
5.4.220.0070.05319.08
5.4.210.0070.05318.85
5.4.200.0100.05018.90
5.4.190.0070.05319.01
5.4.180.0100.05018.73
5.4.170.0070.05318.84
5.4.160.0030.05318.73
5.4.150.0070.05318.93
5.4.140.0070.05016.42
5.4.130.0100.04316.59
5.4.120.0100.07716.54
5.4.110.0100.04716.50
5.4.100.0030.05016.40
5.4.90.0100.04316.40
5.4.80.0100.05316.39
5.4.70.0070.07316.35
5.4.60.0130.04016.41
5.4.50.0000.05316.41
5.4.40.0070.05016.67
5.4.30.0070.04716.48
5.4.20.0030.05716.45
5.4.10.0130.04316.47
5.4.00.0030.05015.83
5.3.280.0070.05314.45
5.3.270.0030.06014.46
5.3.260.0070.05314.61
5.3.250.0130.04314.50
5.3.240.0000.05714.52
5.3.230.0100.05014.29
5.3.220.0000.05714.59
5.3.210.0070.05014.59
5.3.200.0030.05314.55
5.3.190.0070.05014.43
5.3.180.0000.05714.58
5.3.170.0130.04014.42
5.3.160.0030.05314.57
5.3.150.0170.04014.48
5.3.140.0100.04714.61
5.3.130.0130.04314.25
5.3.120.0100.05014.32
5.3.110.0070.05314.40
5.3.100.0230.05014.04
5.3.90.0030.07713.89
5.3.80.0170.04314.04
5.3.70.0070.06714.04
5.3.60.0070.05313.77
5.3.50.0000.05313.80
5.3.40.0030.05013.99
5.3.30.0070.05713.75
5.3.20.0070.04713.71
5.3.10.0070.04713.42
5.3.00.0130.05713.61
5.2.170.0030.04711.29
5.2.160.0070.03711.05
5.2.150.0030.04311.05
5.2.140.0100.03711.15
5.2.130.0130.04711.11
5.2.120.0070.03711.03
5.2.110.0000.04311.10
5.2.100.0030.04710.93
5.2.90.0000.04311.09
5.2.80.0000.04711.10
5.2.70.0000.04311.18
5.2.60.0070.04011.20
5.2.50.0130.04711.17
5.2.40.0030.04010.83
5.2.30.0030.04310.89
5.2.20.0070.03711.05
5.2.10.0070.03711.03
5.2.00.0000.04710.93
5.1.60.0000.0379.91
5.1.50.0030.03310.04
5.1.40.0030.0339.74
5.1.30.0070.03710.27
5.1.20.0130.03310.24
5.1.10.0070.0339.83
5.1.00.0030.03710.00
5.0.50.0030.0278.31
5.0.40.0030.0278.35
5.0.30.0070.0537.98
5.0.20.0000.0308.16
5.0.10.0000.0338.23
5.0.00.0030.0538.16
4.4.90.0030.0276.79
4.4.80.0030.0206.79
4.4.70.0000.0236.79
4.4.60.0030.0236.79
4.4.50.0030.0206.79
4.4.40.0070.0276.79
4.4.30.0070.0176.79
4.4.20.0000.0236.79
4.4.10.0030.0236.79
4.4.00.0100.0306.79
4.3.110.0070.0206.79
4.3.100.0070.0236.79
4.3.90.0100.0236.79
4.3.80.0070.0276.79
4.3.70.0000.0236.79
4.3.60.0100.0176.79
4.3.50.0000.0236.79
4.3.40.0030.0306.79
4.3.30.0000.0236.79
4.3.20.0070.0176.79
4.3.10.0000.0206.79
4.3.00.0070.0207.15

preferences:
137.62 ms | 1394 KiB | 7 Q