3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Daniel() { public function erIdiot() { return 5; } } function foo() { return 1; } $class = new Daniel(); var_dump($class->erIdiot());

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.270.0060.03612.40
5.4.260.0100.05018.84
5.4.250.0200.04718.94
5.4.240.0100.06018.99
5.4.230.0100.05318.95
5.4.220.0230.05319.00
5.4.210.0200.06719.01
5.4.200.0130.07319.03
5.4.190.0130.05318.93
5.4.180.0100.05318.96
5.4.170.0200.05018.89
5.4.160.0100.06018.78
5.4.150.0030.08318.77
5.4.140.0170.05316.43
5.4.130.0130.06016.45
5.4.120.0100.05316.55
5.4.110.0130.07016.48
5.4.100.0170.05716.56
5.4.90.0170.04316.44
5.4.80.0100.06716.36
5.4.70.0100.05016.45
5.4.60.0100.04716.47
5.4.50.0100.06716.44
5.4.40.0100.05016.57
5.4.30.0170.06316.34
5.4.20.0100.06716.48
5.4.10.0100.07016.52
5.4.00.0170.06015.83
5.3.280.0030.07714.61
5.3.270.0070.05714.66
5.3.260.0070.06014.50
5.3.250.0170.05014.60
5.3.240.0130.05714.70
5.3.230.0170.05714.66
5.3.220.0100.05014.46
5.3.210.0030.05714.58
5.3.200.0100.07314.65
5.3.190.0000.07314.63
5.3.180.0030.05314.46
5.3.170.0070.05714.64
5.3.160.0070.05014.73
5.3.150.0100.05014.48
5.3.140.0030.05314.74
5.3.130.0100.07014.72
5.3.120.0130.06314.38
5.3.110.0070.06714.53
5.3.100.0070.07014.00
5.3.90.0200.05314.10
5.3.80.0070.07014.00
5.3.70.0030.05014.09
5.3.60.0170.06313.96
5.3.50.0070.05314.01
5.3.40.0070.05013.95
5.3.30.0100.04713.98
5.3.20.0030.05713.52
5.3.10.0070.07313.80
5.3.00.0130.06713.80
5.2.170.0070.04711.04
5.2.160.0030.04311.21
5.2.150.0070.06011.11
5.2.140.0030.06311.30
5.2.130.0000.05711.16
5.2.120.0000.05311.16
5.2.110.0170.04710.92
5.2.100.0100.04311.15
5.2.90.0030.04311.15
5.2.80.0130.05711.15
5.2.70.0100.04310.99
5.2.60.0070.05711.05
5.2.50.0170.05711.09
5.2.40.0100.03711.05
5.2.30.0070.05310.92
5.2.20.0000.06311.04
5.2.10.0000.05711.08
5.2.00.0000.05010.93
5.1.60.0070.03710.05
5.1.50.0170.0239.98
5.1.40.0130.0439.76
5.1.30.0070.05010.42
5.1.20.0030.04010.51
5.1.10.0070.03310.12
5.1.00.0030.05010.02
5.0.50.0070.0378.63
5.0.40.0070.0308.50
5.0.30.0070.0408.17
5.0.20.0100.0278.23
5.0.10.0070.0378.13
5.0.00.0070.0537.98
4.4.90.0070.0277.82
4.4.80.0030.0307.82
4.4.70.0070.0177.82
4.4.60.0030.0277.82
4.4.50.0030.0307.82
4.4.40.0000.0407.82
4.4.30.0000.0277.82
4.4.20.0030.0307.82
4.4.10.0000.0237.82
4.4.00.0070.0407.82
4.3.110.0070.0277.82
4.3.100.0000.0237.82
4.3.90.0070.0277.82
4.3.80.0070.0437.82
4.3.70.0000.0337.82
4.3.60.0000.0277.82
4.3.50.0070.0307.82
4.3.40.0030.0407.82
4.3.30.0030.0277.82
4.3.20.0070.0277.82
4.3.10.0100.0177.82
4.3.00.0130.0208.20

preferences:
144.09 ms | 1394 KiB | 7 Q