3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function __construct() { $this->something(); } public function something() { echo __CLASS__ . PHP_EOL; // foo } } class foo_bar extends foo { public function __construct() { parent::something(); $this->something(); } public function something() { echo __CLASS__ . PHP_EOL; // foo_bar } } class foo_bar_baz extends foo_bar { public function __construct() { foo::something(); parent::__construct(); $this->something(); } public function something() { echo __CLASS__ . PHP_EOL; // foo_bar_baz } } $obj = new foo_bar_baz();

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.60.0030.01418.43
8.3.50.0050.01022.05
8.3.40.0070.00718.76
8.3.30.0070.00718.93
8.3.20.0040.00420.05
8.3.10.0070.00023.60
8.3.00.0050.00322.51
8.2.180.0100.01018.42
8.2.170.0140.00022.96
8.2.160.0070.00722.20
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.38
8.2.110.0030.00619.05
8.2.100.0110.00017.91
8.2.90.0050.00319.22
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00718.04
8.2.50.0060.00318.07
8.2.40.0090.00018.16
8.2.30.0040.00418.04
8.2.20.0040.00417.56
8.2.10.0000.00717.64
8.2.00.0050.00317.54
8.1.280.0120.00625.92
8.1.270.0000.00823.82
8.1.260.0030.00726.35
8.1.250.0110.00428.09
8.1.240.0050.00519.13
8.1.230.0080.00417.45
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00717.36
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00421.96
8.1.150.0070.00018.62
8.1.140.0030.00517.45
8.1.130.0000.00617.71
8.1.120.0050.00217.33
8.1.110.0040.00417.37
8.1.100.0070.00017.43
8.1.90.0000.00717.32
8.1.80.0070.00017.32
8.1.70.0030.00317.43
8.1.60.0050.00317.55
8.1.50.0000.00817.60
8.1.40.0040.00417.56
8.1.30.0040.00417.60
8.1.20.0030.00517.50
8.1.10.0000.00717.45
8.1.00.0040.00417.56
8.0.300.0080.00018.77
8.0.290.0060.00316.75
8.0.280.0000.00718.46
8.0.270.0000.00817.34
8.0.260.0000.00618.32
8.0.250.0000.00716.92
8.0.240.0030.00316.97
8.0.230.0000.00716.78
8.0.220.0070.00016.85
8.0.210.0000.00716.88
8.0.200.0000.00716.93
8.0.190.0000.00716.84
8.0.180.0000.00716.88
8.0.170.0040.00416.75
8.0.160.0000.00816.85
8.0.150.0070.00016.84
8.0.140.0020.00516.81
8.0.130.0000.00813.36
8.0.120.0000.00816.88
8.0.110.0050.00216.91
8.0.100.0050.00316.78
8.0.90.0000.00716.70
8.0.80.0110.01116.79
8.0.70.0060.00316.80
8.0.60.0070.00016.80
8.0.50.0030.00516.89
8.0.30.0110.01217.10
8.0.20.0070.01117.40
8.0.10.0000.00716.87
8.0.00.0110.01116.78
7.4.330.0000.00515.04
7.4.320.0060.00016.41
7.4.300.0040.00416.62
7.4.290.0000.00716.51
7.4.280.0030.00316.66
7.4.270.0040.00416.62
7.4.260.0000.00716.50
7.4.250.0060.00316.53
7.4.240.0040.00416.56
7.4.230.0040.00416.35
7.4.220.0130.01016.64
7.4.210.0090.00716.50
7.4.200.0030.00316.70
7.4.190.0000.00716.75
7.4.160.0030.01416.29
7.4.150.0100.00717.40
7.4.140.0130.00517.86
7.4.130.0070.01016.41
7.4.120.0140.00616.42
7.4.110.0080.00816.71
7.4.100.0130.00616.38
7.4.90.0070.01016.42
7.4.80.0030.01316.49
7.4.70.0120.00916.44
7.4.60.0120.00616.43
7.4.50.0060.00316.45
7.4.40.0080.00522.77
7.4.30.0180.00316.40
7.4.10.0090.00914.67
7.4.00.0060.01014.76
7.3.330.0060.00013.05
7.3.320.0000.00513.11
7.3.310.0070.00016.26
7.3.300.0030.00316.29
7.3.290.0090.00616.32
7.3.280.0070.00916.25
7.3.270.0080.00817.40
7.3.260.0090.01016.24
7.3.250.0120.00616.34
7.3.240.0090.00616.55
7.3.230.0060.00916.39
7.3.210.0040.01716.43
7.3.200.0040.01319.39
7.3.190.0030.01316.43
7.3.180.0100.00716.43
7.3.170.0040.01216.27
7.3.160.0050.01116.38
7.3.130.0110.00714.98
7.3.120.0090.00914.76
7.3.110.0070.01114.82
7.3.100.0080.00714.54
7.3.90.0090.00514.70
7.3.80.0040.00814.78
7.3.70.0050.00714.75
7.3.60.0070.00514.63
7.3.50.0090.00514.81
7.3.40.0070.00614.79
7.3.30.0010.00914.74
7.3.20.0080.00416.58
7.3.10.0080.00516.52
7.3.00.0030.01016.55
7.2.330.0120.00616.55
7.2.320.0030.01316.67
7.2.310.0170.00616.41
7.2.300.0100.00616.51
7.2.290.0060.01016.48
7.2.260.0130.00615.13
7.2.250.0090.00814.92
7.2.240.0050.01015.12
7.2.230.0100.00314.94
7.2.220.0080.00714.94
7.2.210.0020.00814.68
7.2.200.0060.00615.04
7.2.190.0050.01114.94
7.2.180.0050.00915.08
7.2.170.0060.01015.04
7.2.160.0040.01114.70
7.2.150.0020.00816.85
7.2.140.0070.00716.80
7.2.130.0040.01216.80
7.2.120.0060.00316.75
7.2.110.0100.00516.90
7.2.100.0070.00716.47
7.2.90.0090.00416.81
7.2.80.0070.00516.66
7.2.70.0060.00916.79
7.2.60.0030.01216.92
7.2.50.0060.00616.91
7.2.40.0050.00516.70
7.2.30.0020.01216.90
7.2.20.0050.00817.00
7.2.10.0080.00716.89
7.2.00.0060.00917.69
7.1.330.0020.01315.71
7.1.320.0060.00815.63
7.1.310.0020.01015.78
7.1.300.0030.01215.71
7.1.290.0060.01015.41
7.1.280.0070.00415.44
7.1.270.0020.01215.50
7.1.260.0050.00715.55
7.1.250.0090.00615.51
7.1.240.0090.00515.68
7.1.230.0040.00915.52
7.1.220.0050.01215.55
7.1.210.0060.00515.64
7.1.200.0050.00615.55
7.1.190.0050.00715.57
7.1.180.0080.00515.69
7.1.170.0070.00715.55
7.1.160.0050.00715.71
7.1.150.0070.00615.67
7.1.140.0050.00615.66
7.1.130.0020.01215.65
7.1.120.0020.01215.71
7.1.110.0040.00715.70
7.1.100.0050.00915.95
7.1.90.0030.01015.69
7.1.80.0090.00515.74
7.1.70.0070.00416.28
7.1.60.0060.00616.74
7.1.50.0070.00715.98
7.1.40.0020.01015.64
7.1.30.0120.00315.61
7.1.20.0030.01215.70
7.1.10.0050.00915.70
7.1.00.0070.02917.95
7.0.330.0090.00515.25
7.0.320.0080.00615.29
7.0.310.0080.00515.46
7.0.300.0060.00815.21
7.0.290.0000.01315.43
7.0.280.0050.00715.42
7.0.270.0020.01215.21
7.0.260.0060.00515.33
7.0.250.0030.00715.41
7.0.240.0070.00315.50
7.0.230.0050.00615.45
7.0.220.0080.00715.38
7.0.210.0030.01215.29
7.0.200.0020.00815.82
7.0.190.0070.00515.30
7.0.180.0050.00715.38
7.0.170.0060.00715.30
7.0.160.0030.01015.23
7.0.150.0050.00715.41
7.0.140.0060.02817.67
7.0.130.0040.00615.25
7.0.120.0040.00515.37
7.0.110.0060.00715.39
7.0.100.0040.02316.87
7.0.90.0040.03516.79
7.0.80.0090.02716.79
7.0.70.0080.02616.98
7.0.60.0030.03816.72
7.0.50.0100.02516.91
7.0.40.0060.02415.57
7.0.30.0060.02415.73
7.0.20.0020.01915.60
7.0.10.0040.03515.59
7.0.00.0040.03715.55
5.6.400.0060.00514.22
5.6.390.0060.00614.60
5.6.380.0060.01014.21
5.6.370.0080.00514.29
5.6.360.0080.00814.21
5.6.350.0060.00714.32
5.6.340.0060.00714.43
5.6.330.0060.00914.44
5.6.320.0070.00514.21
5.6.310.0070.00514.30
5.6.300.0020.01114.58
5.6.290.0050.00814.32
5.6.280.0050.03016.44
5.6.270.0080.00614.49
5.6.260.0050.00814.22
5.6.250.0120.03016.46
5.6.240.0090.02616.45
5.6.230.0040.01916.53
5.6.220.0060.03416.43
5.6.210.0040.02116.54
5.6.200.0070.03116.51
5.6.190.0080.02816.60
5.6.180.0050.03416.52
5.6.170.0070.03116.48
5.6.160.0070.03116.52
5.6.150.0050.03016.65
5.6.140.0030.03416.51
5.6.130.0060.03416.52
5.6.120.0060.02616.48
5.6.110.0030.03516.54
5.6.100.0110.02616.44
5.6.90.0060.03416.59
5.6.80.0090.02916.40
5.6.70.0040.03116.21
5.6.60.0040.03116.22
5.6.50.0060.03116.11
5.6.40.0090.02116.29
5.6.30.0050.02716.20
5.6.20.0080.03116.31
5.6.10.0070.02716.29
5.6.00.0060.03316.28
5.5.380.0110.01216.27
5.5.370.0050.01916.34
5.5.360.0050.03116.22
5.5.350.0070.02916.31
5.5.340.0060.02416.61
5.5.330.0060.03116.34
5.5.320.0080.02916.42
5.5.310.0060.03216.41
5.5.300.0070.03116.49
5.5.290.0060.02616.40
5.5.280.0090.02616.49
5.5.270.0060.02016.50
5.5.260.0070.03016.28
5.5.250.0010.03016.31
5.5.240.0070.01916.22
5.5.230.0000.03716.12
5.5.220.0110.02616.15
5.5.210.0090.02816.24
5.5.200.0050.03416.10
5.5.190.0080.03116.12
5.5.180.0040.03516.13
5.5.170.0080.00614.01
5.5.160.0080.03216.27
5.5.150.0090.02816.08
5.5.140.0070.03516.20
5.5.130.0060.03116.25
5.5.120.0070.03116.30
5.5.110.0110.03016.22
5.5.100.0030.03016.16
5.5.90.0080.03016.09
5.5.80.0120.02616.05
5.5.70.0070.02316.27
5.5.60.0110.02316.05
5.5.50.0070.02816.26
5.5.40.0030.03516.13
5.5.30.0030.03016.18
5.5.20.0060.03216.07
5.5.10.0070.03116.17
5.5.00.0090.02916.04
5.4.450.0070.03014.30
5.4.440.0060.02014.25
5.4.430.0080.01614.45
5.4.420.0060.02514.34
5.4.410.0050.02714.28
5.4.400.0050.02114.25
5.4.390.0070.02314.21
5.4.380.0040.02914.13
5.4.370.0060.02914.32
5.4.360.0070.01714.25
5.4.350.0070.02414.24
5.4.340.0050.02714.33
5.4.330.0050.00611.75
5.4.320.0050.03214.29
5.4.310.0070.03214.24
5.4.300.0070.03014.30
5.4.290.0100.02114.24
5.4.280.0030.02214.19
5.4.270.0040.02114.24
5.4.260.0030.02614.26
5.4.250.0040.02814.23
5.4.240.0070.02914.18
5.4.230.0050.03114.31
5.4.220.0030.03314.16
5.4.210.0080.02314.34
5.4.200.0040.01914.19
5.4.190.0020.01914.26
5.4.180.0100.02014.27
5.4.170.0080.02614.20
5.4.160.0080.02814.29
5.4.150.0050.02714.26
5.4.140.0060.02713.32
5.4.130.0060.02113.39
5.4.120.0040.02913.45
5.4.110.0070.02613.38
5.4.100.0020.02813.32
5.4.90.0070.02513.38
5.4.80.0060.01413.29
5.4.70.0050.02813.45
5.4.60.0060.02713.25
5.4.50.0060.02613.43
5.4.40.0030.01813.43
5.4.30.0040.01813.37
5.4.20.0080.02413.30
5.4.10.0070.02213.27
5.4.00.0090.01813.19
5.3.290.0080.02912.65
5.3.280.0040.02012.65
5.3.270.0070.02812.68
5.3.260.0080.02412.70
5.3.250.0060.03112.68
5.3.240.0010.02912.63
5.3.230.0090.02112.62
5.3.220.0040.02912.63
5.3.210.0070.02512.61
5.3.200.0040.02912.61
5.3.190.0040.02712.66
5.3.180.0040.02612.64
5.3.170.0060.02212.67
5.3.160.0070.01912.72
5.3.150.0070.02712.63
5.3.140.0070.02612.67
5.3.130.0050.02012.67
5.3.120.0090.02412.67
5.3.110.0030.01812.64
5.3.100.0030.03412.45
5.3.90.0060.02712.45
5.3.80.0080.02712.46
5.3.70.0060.01912.42
5.3.60.0030.02912.47
5.3.50.0070.01512.46
5.3.40.0060.02712.43
5.3.30.0070.02412.38
5.3.20.0050.02612.40
5.3.10.0050.01712.33
5.3.00.0070.02612.28
5.2.170.0030.06311.16
5.2.160.0070.04711.15
5.2.150.0000.05011.27
5.2.140.0130.05011.27
5.2.130.0130.05011.24
5.2.120.0030.05311.15
5.2.110.0030.05711.16
5.2.100.0030.06011.21
5.2.90.0070.06311.15
5.2.80.0100.06011.16
5.2.70.0000.05311.19
5.2.60.0100.05311.15
5.2.50.0030.03311.15
5.2.40.0100.06011.15
5.2.30.0070.06011.15
5.2.20.0030.06311.15
5.2.10.0070.05711.15
5.2.00.0030.06011.15
5.1.60.0030.05711.15
5.1.50.0030.03011.15
5.1.40.0030.05011.15
5.1.30.0070.05311.15
5.1.20.0130.04311.15
5.1.10.0030.04711.15
5.1.00.0100.03011.15
5.0.50.0100.03711.15
5.0.40.0070.04311.15
5.0.30.0000.05711.15
5.0.20.0030.04711.15
5.0.10.0030.04311.15
5.0.00.0070.05711.15
4.4.90.0030.03011.15
4.4.80.0030.02711.15
4.4.70.0100.02311.15
4.4.60.0000.03711.15
4.4.50.0000.03711.15
4.4.40.0030.05711.15
4.4.30.0000.03711.15
4.4.20.0030.01711.15
4.4.10.0030.03311.15
4.4.00.0000.05311.15
4.3.110.0000.04011.15
4.3.100.0030.03311.15
4.3.90.0100.02311.15
4.3.80.0070.05011.15
4.3.70.0070.03311.15
4.3.60.0000.03711.15
4.3.50.0000.03311.15
4.3.40.0030.05011.15
4.3.30.0070.02711.15
4.3.20.0100.02711.15
4.3.10.0030.01711.15
4.3.00.0070.02311.15

preferences:
43.1 ms | 401 KiB | 5 Q