3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { function __construct() { echo "Constructing Base"; } function __construct($s) { } } class Derive extends Base { function __construct() { } } new Base();

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.0100.05718.94
5.4.250.0130.06719.00
5.4.240.0030.07718.79
5.4.230.0170.05018.98
5.4.220.0070.07719.00
5.4.210.0070.05719.02
5.4.200.0100.05318.96
5.4.190.0170.06018.91
5.4.180.0170.07018.97
5.4.170.0070.06019.00
5.4.160.0100.05018.97
5.4.150.0070.07018.77
5.4.140.0100.05016.41
5.4.130.0070.05716.34
5.4.120.0170.06316.39
5.4.110.0100.04716.42
5.4.100.0170.04316.39
5.4.90.0170.04316.50
5.4.80.0230.04716.54
5.4.70.0130.05316.48
5.4.60.0030.05316.43
5.4.50.0030.07016.59
5.4.40.0070.06716.43
5.4.30.0130.05316.29
5.4.20.0030.06016.39
5.4.10.0130.07316.48
5.4.00.0100.06315.97
5.3.280.0130.05014.56
5.3.270.0170.07714.63
5.3.260.0100.07314.75
5.3.250.0230.06014.59
5.3.240.0200.06714.44
5.3.230.0130.04714.60
5.3.220.0100.05714.65
5.3.210.0200.05714.57
5.3.200.0030.05314.79
5.3.190.0130.07014.39
5.3.180.0130.04314.73
5.3.170.0170.06314.63
5.3.160.0200.05714.58
5.3.150.0100.07014.54
5.3.140.0070.05314.54
5.3.130.0100.07014.63
5.3.120.0100.05314.54
5.3.110.0070.05714.61
5.3.100.0030.06314.04
5.3.90.0100.07314.19
5.3.80.0200.05014.00
5.3.70.0100.05714.10
5.3.60.0170.05314.00
5.3.50.0030.05314.03
5.3.40.0100.07013.99
5.3.30.0100.05313.73
5.3.20.0100.04713.71
5.3.10.0100.04713.73
5.3.00.0170.04313.64
5.2.170.0070.04711.21
5.2.160.0030.04311.12
5.2.150.0130.05011.23
5.2.140.0100.04011.23
5.2.130.0030.04311.32
5.2.120.0030.06311.06
5.2.110.0170.03011.18
5.2.100.0100.03711.10
5.2.90.0100.03711.06
5.2.80.0030.04311.04
5.2.70.0070.05711.18
5.2.60.0000.05011.04
5.2.50.0070.04710.99
5.2.40.0030.05010.95
5.2.30.0130.05010.88
5.2.20.0130.04011.03
5.2.10.0130.03310.83
5.2.00.0100.04010.67
5.1.60.0100.03310.20
5.1.50.0130.0309.84
5.1.40.0100.03310.13
5.1.30.0070.05310.42
5.1.20.0000.05710.36
5.1.10.0030.04710.16
5.1.00.0070.04310.16
5.0.50.0000.0438.38
5.0.40.0100.0308.36
5.0.30.0030.0408.27
5.0.20.0030.0308.24
5.0.10.0100.0338.32
5.0.00.0100.0338.39
4.4.90.0030.0207.53
4.4.80.0000.0237.53
4.4.70.0070.0277.54
4.4.60.0030.0277.54
4.4.50.0030.0277.54
4.4.40.0100.0407.54
4.4.30.0030.0237.54
4.4.20.0030.0277.54
4.4.10.0070.0237.54
4.4.00.0030.0407.54
4.3.110.0000.0277.54
4.3.100.0070.0177.54
4.3.90.0030.0307.54
4.3.80.0030.0307.54
4.3.70.0000.0237.54
4.3.60.0030.0207.54
4.3.50.0030.0307.54
4.3.40.0030.0337.54
4.3.30.0030.0207.54
4.3.20.0000.0237.54
4.3.10.0030.0207.54
4.3.00.0030.0236.70

preferences:
144.35 ms | 1394 KiB | 7 Q