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.5.20.0210.00818.46
8.5.10.0230.00617.70
8.5.00.0190.00719.05
8.4.170.0120.01020.47
8.4.160.0190.01220.24
8.4.150.0050.00716.78
8.4.140.0200.01117.48
8.4.130.0210.00518.65
8.4.120.0250.00819.25
8.4.110.0260.00920.11
8.4.100.0260.00817.71
8.4.90.0250.00918.09
8.4.80.0220.00718.27
8.4.70.0250.00817.82
8.4.60.0260.00818.17
8.4.50.0250.00917.73
8.4.40.0210.00818.54
8.4.30.0260.00819.89
8.4.20.0250.00917.40
8.4.10.0270.00519.04
8.3.300.0240.00918.63
8.3.290.0230.00919.37
8.3.280.0210.00918.19
8.3.270.0240.00916.43
8.3.260.0230.00416.61
8.3.250.0230.00917.66
8.3.240.0240.00816.68
8.3.230.0270.00516.53
8.3.220.0210.01017.79
8.3.210.0240.00817.56
8.3.200.0210.00516.60
8.3.190.0220.01116.47
8.3.180.0240.00716.46
8.3.170.0200.00816.57
8.3.160.0200.01116.36
8.3.150.0240.01016.80
8.3.140.0260.00616.77
8.3.130.0250.00617.00
8.3.120.0220.00917.28
8.3.110.0230.00518.02
8.3.100.0240.00718.42
8.3.90.0250.00719.12
8.3.80.0200.01016.41
8.3.70.0230.01016.85
8.3.60.0270.00416.83
8.3.50.0210.00819.30
8.3.40.0200.00918.06
8.3.30.0200.00918.21
8.3.20.0160.00818.29
8.3.10.0170.00918.19
8.3.00.0130.00619.44
8.2.300.0300.00818.94
8.2.290.0180.00518.60
8.2.280.0180.00619.26
8.2.270.0210.00916.54
8.2.260.0220.00616.49
8.2.250.0220.00617.31
8.2.240.0220.00917.22
8.2.230.0150.00917.98
8.2.220.0170.00621.79
8.2.210.0180.00419.01
8.2.200.0170.00616.41
8.2.190.0210.00516.57
8.2.180.0170.00916.96
8.2.170.0200.00719.01
8.2.160.0200.00618.40
8.2.150.0160.00919.35
8.2.140.0150.00619.38
8.2.130.0140.00620.50
8.2.120.0160.00420.59
8.2.110.0160.00319.49
8.2.100.0160.00618.95
8.2.90.0140.00618.96
8.2.80.0150.00619.02
8.2.70.0150.00518.88
8.2.60.0160.00518.97
8.2.50.0150.00519.25
8.2.40.0140.00619.60
8.2.30.0140.00719.19
8.2.20.0120.00818.88
8.2.10.0140.00819.08
8.2.00.0150.00519.15
8.1.340.0210.01119.65
8.1.330.0230.00619.02
8.1.320.0210.00716.15
8.1.310.0200.00717.28
8.1.300.0170.01316.75
8.1.290.0160.00816.86
8.1.280.0190.00718.52
8.1.270.0150.00619.33
8.1.260.0130.00720.55
8.1.250.0150.00521.18
8.1.240.0140.00419.67
8.1.230.0150.00420.02
8.1.220.0100.00618.85
8.1.210.0160.00418.91
8.1.200.0150.00418.60
8.1.190.0130.00518.57
8.1.180.0140.00418.95
8.1.170.0140.00618.92
8.1.160.0140.00618.96
8.1.150.0170.00518.83
8.1.140.0180.00718.90
8.1.130.0150.00419.20
8.1.120.0130.00518.64
8.1.110.0130.00518.66
8.1.100.0090.00517.96
8.1.90.0150.00418.66
8.1.80.0150.00418.64
8.1.70.0150.00418.61
8.1.60.0150.00518.86
8.1.50.0150.00518.73
8.1.40.0140.00618.83
8.1.30.0140.00618.84
8.1.20.0160.00618.84
8.1.10.0150.00718.81
8.1.00.0160.00418.66
8.0.300.0170.00418.53
8.0.290.0160.00718.16
8.0.280.0180.00618.44
8.0.270.0190.00718.11
8.0.260.0220.00518.73
8.0.250.0190.00618.25
8.0.240.0210.00618.18
8.0.230.0190.00618.18
8.0.220.0180.00818.10
8.0.210.0190.00618.12
8.0.200.0190.00618.15
8.0.190.0210.00318.06
8.0.180.0210.00418.08
8.0.170.0250.00418.11
8.0.160.0180.00718.15
8.0.150.0160.00718.13
8.0.140.0220.00318.10
8.0.130.0190.00517.39
8.0.120.0160.01018.12
8.0.110.0180.00718.08
8.0.100.0180.00618.12
8.0.90.0170.00918.14
8.0.80.0160.00917.87
8.0.70.0200.00518.04
8.0.60.0240.00317.97
8.0.50.0190.00717.97
8.0.30.0210.00618.01
8.0.20.0180.00718.00
8.0.10.0160.00718.22
8.0.00.0150.01018.23
7.4.330.0150.00517.91
7.4.320.0200.00417.87
7.4.300.0160.00617.94
7.4.290.0170.00517.85
7.4.280.0200.00517.95
7.4.270.0170.00617.87
7.4.260.0210.00417.17
7.4.250.0200.00417.90
7.4.240.0140.00417.68
7.4.230.0220.00317.93
7.4.220.0150.00517.74
7.4.210.0150.00617.38
7.4.200.0190.00317.95
7.4.190.0250.00318.29
7.4.180.0220.00518.23
7.4.160.0220.00818.22
7.4.150.0240.00618.20
7.4.140.0260.00318.12
7.4.130.0170.00917.65
7.4.120.0220.00517.80
7.4.110.0190.00817.95
7.4.100.0230.00317.86
7.4.90.0230.00717.87
7.4.80.0240.00618.42
7.4.70.0220.00717.97
7.4.60.0190.00817.82
7.4.50.0220.00617.79
7.4.40.0220.00717.85
7.4.30.0210.01018.24
7.4.20.0170.00817.38
7.4.10.0200.00817.43
7.4.00.0170.01017.48
7.3.330.0190.00517.63
7.3.320.0170.00617.11
7.3.310.0170.00717.72
7.3.300.0180.00517.71
7.3.290.0150.00717.29
7.3.280.0210.00718.03
7.3.270.0220.00618.28
7.3.260.0230.00617.70
7.3.250.0260.00517.98
7.3.240.0170.00817.23
7.3.230.0210.00817.74
7.3.220.0230.00717.95
7.3.210.0210.00717.64
7.3.200.0240.00317.66
7.3.190.0220.00617.67
7.3.180.0190.00817.75
7.3.170.0190.00817.69
7.3.160.0220.00517.77
7.3.150.0250.00317.98
7.3.140.0150.00617.39
7.3.130.0150.00717.20
7.3.120.0160.00617.33
7.3.110.0180.00517.29
7.3.100.0160.00917.26
7.3.90.0140.00917.37
7.3.80.0150.00717.33
7.3.70.0130.00917.32
7.3.60.0130.00817.31
7.3.50.0160.00717.28
7.3.40.0160.00617.39
7.3.30.0160.00717.38
7.3.20.0210.00718.16
7.3.10.0150.01118.09
7.3.00.0160.00718.12
7.2.340.0220.00518.16
7.2.330.0190.00817.84
7.2.320.0190.00617.81
7.2.310.0190.00717.88
7.2.300.0220.00617.75
7.2.290.0190.00817.79
7.2.280.0260.00418.09
7.2.270.0160.01117.38
7.2.260.0170.00817.41
7.2.250.0150.00717.50
7.2.240.0170.00817.49
7.2.230.0160.00817.42
7.2.220.0200.00617.41
7.2.210.0180.00717.47
7.2.200.0180.00817.54
7.2.190.0150.00917.52
7.2.180.0190.00717.49
7.2.170.0170.00717.49
7.2.160.0120.01017.48
7.2.150.0180.00818.35
7.2.140.0150.00718.42
7.2.130.0130.00818.41
7.2.120.0140.00718.39
7.2.110.0160.00718.38
7.2.100.0150.00718.40
7.2.90.0160.00718.35
7.2.80.0180.00618.34
7.2.70.0140.00618.34
7.2.60.0140.00718.41
7.2.50.0140.01018.35
7.2.40.0170.01018.34
7.2.30.0190.00818.27
7.2.20.0160.00918.28
7.2.10.0160.00818.39
7.2.00.0180.01018.40

preferences:
109.03 ms | 403 KiB | 5 Q