3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() { } public static function init() { $instance = new static(); $instance->doStuff(); } protected function doStuff() { echo get_class($this); } } class B extends A { } B::init();

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)
8.3.130.0200.00517.26
8.3.120.0180.00717.66
8.3.110.0190.00418.49
8.3.100.0180.00618.96
8.3.90.0180.00620.03
8.3.80.0130.01016.35
8.3.70.0180.01017.04
8.3.60.0230.00216.95
8.3.50.0150.00820.05
8.3.40.0140.01018.11
8.3.30.0150.00818.37
8.3.20.0110.00818.51
8.3.10.0120.00918.34
8.3.00.0090.00519.87
8.2.250.0180.00317.69
8.2.240.0180.00817.65
8.2.230.0110.00918.50
8.2.220.0130.00523.56
8.2.210.0130.00419.90
8.2.200.0120.00516.44
8.2.190.0180.00316.54
8.2.180.0130.00917.12
8.2.170.0170.00719.43
8.2.160.0160.00618.54
8.2.150.0100.00919.81
8.2.140.0100.00519.88
8.2.130.0100.00621.22
8.2.120.0140.00221.25
8.2.110.0110.00219.88
8.2.100.0130.00519.21
8.2.90.0110.00519.23
8.2.80.0110.00519.35
8.2.70.0120.00519.19
8.2.60.0120.00419.26
8.2.50.0130.00419.64
8.2.40.0100.00520.06
8.2.30.0090.00619.55
8.2.20.0080.00719.18
8.2.10.0090.00719.42
8.2.00.0110.00519.50
8.1.300.0120.01417.07
8.1.290.0110.00817.14
8.1.280.0160.00519.41
8.1.270.0110.00519.76
8.1.260.0090.00621.30
8.1.250.0100.00522.09
8.1.240.0110.00320.16
8.1.230.0110.00320.60
8.1.220.0050.00619.13
8.1.210.0130.00419.26
8.1.200.0110.00318.88
8.1.190.0100.00318.86
8.1.180.0100.00319.31
8.1.170.0110.00519.23
8.1.160.0110.00519.36
8.1.150.0150.00319.17
8.1.140.0160.00619.28
8.1.130.0120.00419.62
8.1.120.0100.00418.90
8.1.110.0100.00418.94
8.1.100.0070.00417.99
8.1.90.0110.00418.90
8.1.80.0120.00318.89
8.1.70.0120.00318.91
8.1.60.0130.00319.10
8.1.50.0110.00519.01
8.1.40.0110.00519.07
8.1.30.0120.00419.07
8.1.20.0120.00419.09
8.1.10.0100.00619.10
8.1.00.0120.00418.95
8.0.300.0150.00318.89
8.0.290.0140.00518.42
8.0.280.0160.00618.83
8.0.270.0180.00618.42
8.0.260.0210.00419.19
8.0.250.0170.00518.55
8.0.240.0190.00618.46
8.0.230.0170.00618.51
8.0.220.0160.00818.42
8.0.210.0180.00518.43
8.0.200.0180.00618.46
8.0.190.0190.00318.38
8.0.180.0200.00318.39
8.0.170.0240.00318.44
8.0.160.0150.00718.45
8.0.150.0140.00618.44
8.0.140.0210.00218.41
8.0.130.0170.00517.49
8.0.120.0130.01018.44
8.0.110.0150.00618.38
8.0.100.0150.00618.44
8.0.90.0150.00818.46
8.0.80.0140.00918.08
8.0.70.0180.00518.36
8.0.60.0230.00318.25
8.0.50.0160.00718.28
8.0.30.0180.00518.35
8.0.20.0160.00718.22
8.0.10.0130.00718.55
8.0.00.0120.01018.56
7.4.330.0120.00518.24
7.4.320.0170.00418.21
7.4.300.0130.00618.23
7.4.290.0140.00418.22
7.4.280.0170.00518.28
7.4.270.0150.00618.23
7.4.260.0170.00417.37
7.4.250.0180.00418.27
7.4.240.0120.00317.90
7.4.230.0200.00318.24
7.4.220.0120.00417.92
7.4.210.0130.00617.49
7.4.200.0180.00218.25
7.4.190.0230.00218.89
7.4.180.0190.00418.82
7.4.160.0200.00618.77
7.4.150.0220.00618.77
7.4.140.0260.00118.73
7.4.130.0160.00917.89
7.4.120.0200.00518.15
7.4.110.0170.00818.27
7.4.100.0220.00218.20
7.4.90.0220.00818.19
7.4.80.0230.00718.94
7.4.70.0200.00718.28
7.4.60.0170.00818.16
7.4.50.0210.00618.17
7.4.40.0200.00718.16
7.4.30.0200.01018.82
7.4.20.0150.00817.54
7.4.10.0190.00817.57
7.4.00.0150.01017.64
7.3.330.0180.00418.01
7.3.320.0160.00517.34
7.3.310.0150.00618.06
7.3.300.0170.00518.05
7.3.290.0130.00817.45
7.3.280.0200.00718.64
7.3.270.0210.00618.72
7.3.260.0210.00618.05
7.3.250.0260.00418.55
7.3.240.0160.00817.34
7.3.230.0200.00818.09
7.3.220.0200.00818.60
7.3.210.0190.00718.00
7.3.200.0230.00318.04
7.3.190.0210.00618.05
7.3.180.0170.00818.15
7.3.170.0170.00818.02
7.3.160.0210.00518.17
7.3.150.0250.00118.59
7.3.140.0130.00617.60
7.3.130.0130.00717.38
7.3.120.0140.00617.48
7.3.110.0160.00517.45
7.3.100.0150.00917.46
7.3.90.0120.01017.48
7.3.80.0140.00717.52
7.3.70.0120.00917.49
7.3.60.0100.00917.45
7.3.50.0140.00717.43
7.3.40.0150.00617.55
7.3.30.0150.00617.53
7.3.20.0190.00718.13
7.3.10.0130.01118.10
7.3.00.0150.00718.12
7.2.340.0210.00518.72
7.2.330.0160.00918.19
7.2.320.0190.00418.21
7.2.310.0170.00718.29
7.2.300.0210.00518.13
7.2.290.0170.00818.15
7.2.280.0260.00418.68
7.2.270.0150.01217.54
7.2.260.0160.00717.59
7.2.250.0130.00717.70
7.2.240.0150.00817.67
7.2.230.0150.00817.56
7.2.220.0190.00617.64
7.2.210.0170.00717.64
7.2.200.0170.00817.70
7.2.190.0130.00917.67
7.2.180.0180.00817.63
7.2.170.0150.00617.65
7.2.160.0100.01017.66
7.2.150.0160.00818.33
7.2.140.0130.00818.42
7.2.130.0110.00818.40
7.2.120.0120.00818.39
7.2.110.0150.00718.33
7.2.100.0130.00818.40
7.2.90.0130.00818.34
7.2.80.0160.00718.31
7.2.70.0120.00618.30
7.2.60.0110.00718.42
7.2.50.0120.01018.32
7.2.40.0150.01118.31
7.2.30.0180.00818.24
7.2.20.0140.01018.24
7.2.10.0150.00918.36
7.2.00.0180.01018.39

preferences:
51.09 ms | 403 KiB | 5 Q