3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Plop{ public function getURL($name){ return str_replace('%name%', $name, self::$URL); } } call Test{ use Plop; protected static $URL = '/plop/%name'; } echo Test::getURL('test');

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.0070.04020.98
5.6.110.0070.07721.09
5.6.100.0130.06321.13
5.6.90.0070.04021.00
5.6.80.0130.07320.54
5.5.280.0170.07320.89
5.5.270.0000.04320.75
5.5.260.0100.08020.89
5.5.250.0100.08320.79
5.5.240.0030.08020.16
5.4.440.0170.05719.64
5.4.430.0470.06719.69
5.4.420.0670.05719.57
5.4.410.0800.06719.26
5.4.400.0670.06019.29
5.4.390.0670.05719.17
5.4.380.0270.05718.85
5.4.370.0130.05019.27
5.4.360.0600.06019.27
5.4.350.0530.06018.96
5.4.340.0500.06019.29
5.4.320.0130.05318.85
5.4.310.0170.05319.25
5.4.300.0530.07318.84
5.4.290.0570.04718.96
5.4.280.0630.06719.22
5.4.270.0830.06019.24
5.4.260.0630.05319.00
5.4.250.0600.05318.84
5.4.240.0770.06719.13
5.4.230.0830.06719.21
5.4.220.0700.05719.28
5.4.210.0700.05318.88
5.4.200.0770.05317.11
5.4.190.0730.05718.92
5.4.180.0800.07018.86
5.4.170.0770.06718.92
5.4.160.0730.04719.02
5.4.150.0870.06318.99
5.4.140.0570.07016.57
5.4.130.0700.03716.57
5.4.120.0670.04316.38
5.4.110.0630.04716.46
5.4.100.0670.04716.37
5.4.90.0670.06316.50
5.4.80.0730.04716.56
5.4.70.0770.07016.43
5.4.60.0770.05716.48
5.4.50.0830.07016.34
5.4.40.0830.06016.30
5.4.30.0870.07316.41
5.4.20.0700.05716.37
5.4.10.0870.05316.51
5.4.00.0830.04316.00
5.3.290.0900.07314.50
5.3.280.0570.06014.69
5.3.270.0270.05314.45
5.3.260.0670.07014.48
5.3.250.0670.06714.56
5.3.240.0530.06014.40
5.3.230.0870.04714.43
5.3.220.0700.05714.36
5.3.210.0130.06014.45
5.3.200.0230.06314.45
5.3.190.0600.05314.53
5.3.180.0530.05314.41
5.3.170.0070.05714.40
5.3.160.0230.05314.36
5.3.150.0430.05314.55
5.3.140.0500.06014.35
5.3.130.0500.05014.36
5.3.120.0630.05014.38
5.3.110.0400.05314.42
5.3.100.0670.06014.03
5.3.90.0470.05713.91
5.3.80.0500.06714.03
5.3.70.0600.04713.86
5.3.60.0570.06313.98
5.3.50.0530.06013.82
5.3.40.0630.06313.83
5.3.30.0700.06013.76
5.3.20.0600.06713.54
5.3.10.0400.06013.64
5.3.00.0600.07313.48
5.2.170.0470.04711.04
5.2.160.0370.05011.13
5.2.150.0500.03711.08
5.2.140.0470.05011.17
5.2.130.0500.03710.94
5.2.120.0500.05010.95
5.2.110.0500.05011.25
5.2.100.0800.02711.04
5.2.90.0530.03710.95
5.2.80.0570.03711.08
5.2.70.0600.04710.96
5.2.60.0570.06010.89
5.2.50.0700.03311.09
5.2.40.0470.03711.14
5.2.30.0470.05010.86
5.2.20.0600.04011.00
5.2.10.0470.04310.75
5.2.00.0600.04010.73
5.1.60.0330.0539.90
5.1.50.0400.04710.07
5.1.40.0500.0539.95
5.1.30.0630.04710.38
5.1.20.0570.05310.25
5.1.10.0570.04710.24
5.1.00.0600.04010.05
5.0.50.0100.0238.39
5.0.40.0200.0238.29
5.0.30.0170.0538.09
5.0.20.0270.0378.09
5.0.10.0230.0378.06
5.0.00.0230.0538.07
4.4.90.0370.0306.92
4.4.80.0200.0336.92
4.4.70.0130.0306.92
4.4.60.0170.0376.92
4.4.50.0300.0336.92
4.4.40.0270.0436.92
4.4.30.0270.0236.92
4.4.20.0200.0306.92
4.4.10.0100.0306.92
4.4.00.0130.0376.92
4.3.110.0200.0276.92
4.3.100.0130.0206.92
4.3.90.0130.0306.92
4.3.80.0270.0306.92
4.3.70.0330.0176.92
4.3.60.0230.0206.92
4.3.50.0270.0206.92
4.3.40.0270.0376.92
4.3.30.0070.0276.92
4.3.20.0000.0276.92
4.3.10.0100.0236.92
4.3.00.0030.0207.24

preferences:
145.66 ms | 939 KiB | 8 Q