3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is a test string you fucking motherfucker shit." var_dump(substr($string, 100));

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.0130.07720.92
5.6.110.0030.04321.00
5.6.100.0000.07720.96
5.6.90.0070.09021.10
5.6.80.0130.07320.53
5.6.70.4330.04020.36
5.5.280.0070.08320.80
5.5.270.0000.04320.64
5.5.260.0070.03720.61
5.5.250.0170.07720.66
5.5.240.0330.05320.35
5.4.440.0670.06319.32
5.4.430.0870.05019.37
5.4.420.0500.05319.57
5.4.410.0730.05719.45
5.4.400.0530.05318.84
5.4.390.0970.04719.25
5.4.380.0670.05719.25
5.4.370.0830.05019.00
5.4.360.0730.05718.83
5.4.350.0730.05719.05
5.4.340.0770.05719.25
5.4.320.0600.05319.29
5.4.310.0770.05019.26
5.4.300.0570.05718.97
5.4.290.0530.06018.84
5.4.280.0700.05319.14
5.4.270.0770.05719.25
5.4.260.0600.06019.22
5.4.250.0600.04319.23
5.4.240.0770.04018.99
5.4.230.0830.04719.11
5.4.220.0370.06019.27
5.4.210.0670.05019.00
5.4.200.0600.06316.70
5.4.190.0630.05719.13
5.4.180.0630.06018.88
5.4.170.0500.06019.02
5.4.160.0530.05318.99
5.4.150.0370.05019.34
5.4.140.0730.04016.33
5.4.130.0470.05316.31
5.4.120.0430.05016.35
5.4.110.0300.05016.35
5.4.100.0430.05316.31
5.4.90.0600.05316.45
5.4.80.0500.05316.33
5.4.70.0300.05716.39
5.4.60.0330.05316.47
5.4.50.0670.05316.30
5.4.40.0770.05016.50
5.4.30.0830.04016.41
5.4.20.0830.04316.30
5.4.10.0600.05716.52
5.4.00.0500.05715.76
5.3.290.0730.06014.68
5.3.280.0700.07014.58
5.3.270.0770.07014.59
5.3.260.0630.06014.54
5.3.250.0730.06014.48
5.3.240.0830.05014.56
5.3.230.0800.05014.55
5.3.220.0630.06314.39
5.3.210.0770.04714.55
5.3.200.0970.05714.50
5.3.190.0730.04714.52
5.3.180.0730.05714.66
5.3.170.0700.06014.55
5.3.160.0970.05314.40
5.3.150.1000.05014.55
5.3.140.0970.05314.51
5.3.130.0870.04314.39
5.3.120.0470.05714.43
5.3.110.0670.06014.39
5.3.100.0770.06313.91
5.3.90.0670.05013.86
5.3.80.0530.05313.81
5.3.70.1070.05313.96
5.3.60.0770.05013.96
5.3.50.0500.06313.84
5.3.40.0730.05313.93
5.3.30.0730.05013.75
5.3.20.0900.04313.57
5.3.10.0900.06013.50
5.3.00.0430.06313.48
5.2.170.0730.04011.13
5.2.160.0570.04311.16
5.2.150.0700.04310.99
5.2.140.0700.05311.21
5.2.130.0500.04010.95
5.2.120.0900.03711.04
5.2.110.0700.04311.25
5.2.100.0570.04710.94
5.2.90.0630.04310.94
5.2.80.0530.04311.08
5.2.70.0500.04711.04
5.2.60.0530.04010.93
5.2.50.0570.03710.96
5.2.40.0430.04710.85
5.2.30.0770.04310.99
5.2.20.0470.04310.81
5.2.10.0430.04710.86
5.2.00.0570.03710.87
5.1.60.0630.04310.04
5.1.50.0370.04710.15
5.1.40.0470.0309.99
5.1.30.0500.03710.50
5.1.20.0370.05010.32
5.1.10.0570.0409.99
5.1.00.0330.03310.04
5.0.50.0270.0308.48
5.0.40.0200.0278.57
5.0.30.0300.0408.06
5.0.20.0230.0338.25
5.0.10.0300.0238.21
5.0.00.0170.0408.23
4.4.90.0200.0275.77
4.4.80.0370.0235.80
4.4.70.0130.0205.85
4.4.60.0230.0205.78
4.4.50.0230.0235.84
4.4.40.0330.0375.79
4.4.30.0300.0275.74
4.4.20.0230.0235.89
4.4.10.0330.0205.90
4.4.00.0270.0335.78
4.3.110.0230.0235.72
4.3.100.0270.0175.76
4.3.90.0170.0205.85
4.3.80.0370.0335.72
4.3.70.0370.0205.65
4.3.60.0300.0135.67
4.3.50.0270.0205.74
4.3.40.0130.0375.70
4.3.30.0170.0204.50
4.3.20.0030.0274.45
4.3.10.0070.0234.45
4.3.00.0030.0206.93

preferences:
147.2 ms | 1394 KiB | 7 Q