3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass {     public function __construct(){      echo 'MyClass class has initialized !';     }    }  $userclass = new MyClass;  ?> 

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.310.0270.05719.25
5.4.300.0330.07019.14
5.4.290.0200.06718.95
5.4.280.0300.06719.05
5.4.270.0370.07319.11
5.4.260.0370.06019.21
5.4.250.0370.06718.95
5.4.240.0330.06719.18
5.4.230.0270.06318.95
5.4.220.0300.08019.11
5.4.210.0270.04319.12
5.4.200.0400.03719.22
5.4.190.0370.06319.11
5.4.180.0330.04019.11
5.4.170.0200.06019.14
5.4.160.0270.06719.22
5.4.150.0300.06319.14
5.4.140.0370.06016.35
5.4.130.0270.07016.34
5.4.120.0270.06016.45
5.4.110.0230.05716.26
5.4.100.0330.06716.55
5.4.90.0300.06316.48
5.4.80.0270.03316.61
5.4.70.0230.04016.51
5.4.60.0300.04716.54
5.4.50.0270.04016.45
5.4.40.0300.06316.46
5.4.30.0270.03716.45
5.4.20.0330.06316.45
5.4.10.0330.06316.50
5.4.00.0270.03315.97
5.3.280.0330.07014.56
5.3.270.0200.04314.63
5.3.260.0200.06014.70
5.3.250.0370.06314.57
5.3.240.0400.06314.58
5.3.230.0300.06014.55
5.3.220.0330.05314.53
5.3.210.0300.04314.45
5.3.200.0330.05014.54
5.3.190.0270.03714.52
5.3.180.0200.04314.35
5.3.170.0300.03314.54
5.3.160.0230.04014.53
5.3.150.0300.03314.49
5.3.140.0430.03314.48
5.3.130.0270.07714.47
5.3.120.0270.06014.64
5.3.110.0300.05714.64
5.3.100.0330.03014.06
5.3.90.0270.03313.81
5.3.80.0170.04313.95
5.3.70.0200.04013.96
5.3.60.0270.03713.98
5.3.50.0370.06313.92
5.3.40.0300.05013.86
5.3.30.0300.06013.84
5.3.20.0230.04013.71
5.3.10.0270.04313.75
5.3.00.0300.07013.56
5.2.170.0170.06011.00
5.2.160.0270.03311.30
5.2.150.0230.06011.07
5.2.140.0200.03011.02
5.2.130.0230.03711.00
5.2.120.0200.03311.05
5.2.110.0300.05010.95
5.2.100.0270.04011.03
5.2.90.0230.05311.18
5.2.80.0230.04010.95
5.2.70.0230.05710.91
5.2.60.0270.04010.89
5.2.50.0230.03711.00
5.2.40.0200.05311.07
5.2.30.0200.05710.89
5.2.20.0270.05010.94
5.2.10.0230.05710.74
5.2.00.0200.05010.62
5.1.60.0170.0439.94
5.1.50.0270.0479.98
5.1.40.0200.0509.97
5.1.30.0230.05710.37
5.1.20.0200.05310.25
5.1.10.0230.05010.08
5.1.00.0270.0239.96
5.0.50.0100.0238.52
5.0.40.0130.0278.42
5.0.30.0100.0378.33
5.0.20.0170.0408.19
5.0.10.0100.0338.30
5.0.00.0100.0378.12
4.4.90.0100.0406.58
4.4.80.0100.0306.60
4.4.70.0070.0336.63
4.4.60.0130.0276.64
4.4.50.0100.0336.65
4.4.40.0070.0536.68
4.4.30.0100.0336.68
4.4.20.0130.0206.69
4.4.10.0130.0206.71
4.4.00.0130.0506.71
4.3.110.0070.0276.71
4.3.100.0130.0306.72
4.3.90.0170.0176.73
4.3.80.0130.0436.74
4.3.70.0100.0336.74
4.3.60.0130.0206.74
4.3.50.0100.0306.75
4.3.40.0070.0406.76
4.3.30.0030.0236.77
4.3.20.0070.0376.77
4.3.10.0030.0376.78
4.3.00.0030.0376.79

preferences:
140.76 ms | 1386 KiB | 7 Q