3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A1 { public function __call($method, $args) { echo "__call"; } public static function __callStatic($method, $args) { echo "__callStatic"; } } class A2 { // A1 with private function test public function __call($method, $args) { echo "__call"; } public static function __callStatic($method, $args) { echo "__callStatic"; } private function test() {} } class B1 extends A1 { public function test(){ parent::test(); } } class B2 extends A2 { public function test(){ parent::test(); } } $test1 = new B1; $test2 = new B2; $test1->test(); $test2->test();

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.0110.00416.50
8.3.50.0120.00521.97
8.3.40.0140.00718.58
8.3.30.0150.00419.13
8.3.20.0040.00420.33
8.3.10.0040.00423.70
8.3.00.0000.00820.67
8.2.180.0040.01525.92
8.2.170.0070.00718.95
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00022.11
8.2.110.0070.00322.16
8.2.100.0070.00417.55
8.2.90.0040.00419.28
8.2.80.0050.00318.02
8.2.70.0090.00017.50
8.2.60.0080.00018.03
8.2.50.0030.00618.07
8.2.40.0050.00318.28
8.2.30.0040.00418.09
8.2.20.0000.00717.46
8.2.10.0040.00417.66
8.2.00.0040.00417.48
8.1.280.0140.00025.92
8.1.270.0030.00524.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00024.01
8.1.230.0040.00718.95
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00917.22
8.1.190.0000.00717.40
8.1.180.0040.00418.10
8.1.170.0030.00618.48
8.1.160.0000.00821.82
8.1.150.0050.00318.57
8.1.140.0050.00317.30
8.1.130.0080.00017.73
8.1.120.0040.00417.44
8.1.110.0000.00717.29
8.1.100.0020.00517.23
8.1.90.0070.00017.29
8.1.80.0050.00317.38
8.1.70.0070.00017.29
8.1.60.0030.00617.62
8.1.50.0040.00417.39
8.1.40.0000.00717.46
8.1.30.0040.00417.56
8.1.20.0000.00717.54
8.1.10.0040.00417.57
8.1.00.0000.00817.54
8.0.300.0040.00418.77
8.0.290.0040.00417.03
8.0.280.0000.00718.43
8.0.270.0000.00717.17
8.0.260.0000.00716.69
8.0.250.0000.00716.85
8.0.240.0070.00016.87
8.0.230.0000.00716.93
8.0.220.0000.00816.81
8.0.210.0040.00416.79
8.0.200.0060.00016.92
8.0.190.0070.00416.84
8.0.180.0000.00716.89
8.0.170.0050.00316.86
8.0.160.0040.00416.93
8.0.150.0070.00016.77
8.0.140.0000.00916.76
8.0.130.0060.00013.27
8.0.120.0080.00016.67
8.0.110.0040.00416.85
8.0.100.0040.00416.69
8.0.90.0050.00316.70
8.0.80.0100.00716.71
8.0.70.0040.00416.82
8.0.60.0000.00816.70
8.0.50.0000.00816.70
8.0.30.0140.00517.27
8.0.20.0110.00917.27
8.0.10.0070.01116.89
8.0.00.0090.00916.86
7.4.330.0000.00515.00
7.4.320.0030.00316.45
7.4.300.0070.00316.55
7.4.290.0070.00016.52
7.4.280.0080.00016.40
7.4.270.0030.00316.61
7.4.260.0040.00216.48
7.4.250.0030.00316.45
7.4.240.0030.00416.53
7.4.230.0030.00316.48
7.4.220.0100.00616.59
7.4.210.0060.00816.59
7.4.200.0000.00716.66
7.4.190.0040.00416.63
7.4.160.0040.01516.66
7.4.150.0170.00716.99
7.4.140.0120.00617.43
7.4.130.0120.00516.58
7.4.120.0110.00616.46
7.4.110.0100.00816.47
7.4.100.0090.00816.35
7.4.90.0090.00816.53
7.4.80.0100.01017.98
7.4.70.0090.01316.49
7.4.60.0140.00616.47
7.4.50.0080.00416.40
7.4.40.0070.01419.70
7.4.30.0070.01516.55
7.4.20.0100.00716.52
7.4.10.0120.00815.78
7.4.00.0070.00915.36
7.3.330.0020.00313.07
7.3.320.0050.00013.04
7.3.310.0030.00316.08
7.3.300.0030.00316.25
7.3.290.0090.00616.21
7.3.280.0070.00916.25
7.3.270.0120.00816.81
7.3.260.0130.00516.31
7.3.250.0110.00716.24
7.3.240.0050.01516.35
7.3.230.0060.01116.31
7.3.220.0150.00316.59
7.3.210.0060.01116.45
7.3.200.0070.01117.81
7.3.190.0100.01216.34
7.3.180.0090.01116.41
7.3.170.0120.00716.43
7.3.160.0090.00816.21
7.3.150.0090.00916.31
7.3.140.0100.00716.24
7.3.130.0060.01015.50
7.3.120.0070.01015.29
7.3.110.0080.01015.34
7.3.100.0050.00915.30
7.3.90.0050.01315.26
7.3.80.0070.00815.30
7.3.70.0060.01015.23
7.3.60.0070.00815.23
7.3.50.0090.00615.26
7.3.40.0060.01015.26
7.3.30.0050.00915.09
7.3.20.0070.00716.40
7.3.10.0070.00716.34
7.3.00.0090.00816.49
7.2.340.0280.00316.77
7.2.330.0150.01116.53
7.2.320.0160.01516.48
7.2.310.0200.00516.54
7.2.300.0130.01116.51
7.2.290.0210.00716.60
7.2.280.0170.01416.68
7.2.270.0250.00616.68
7.2.260.0190.01015.74
7.2.250.0160.00815.94
7.2.240.0180.00315.47
7.2.230.0100.01115.55
7.2.220.0110.01015.46
7.2.210.0120.01015.58
7.2.200.0110.00815.36
7.2.190.0100.00815.47
7.2.180.0110.01015.49
7.2.170.0150.00415.46
7.2.160.0140.00515.51
7.2.150.0100.01016.74
7.2.140.0150.00616.72
7.2.130.0100.00916.69
7.2.120.0080.01216.72
7.2.110.0110.00816.64
7.2.100.0200.00816.72
7.2.90.0140.00916.74
7.2.80.0090.01016.76
7.2.70.0140.00816.69
7.2.60.0140.00616.80
7.2.50.0120.01016.78
7.2.40.0090.01116.78
7.2.30.0200.00816.82
7.2.20.0130.00816.70
7.2.10.0150.00516.74
7.2.00.0140.00617.27
7.1.330.0130.00615.65
7.1.320.0200.00715.68
7.1.310.0090.00915.55
7.1.300.0140.00615.47
7.1.290.0120.00815.61
7.1.280.0110.00815.57
7.1.270.0090.01015.42
7.1.260.0100.00815.52
7.1.250.0100.00715.54
7.1.240.0110.01015.41
7.1.230.0120.00715.52
7.1.220.0120.00615.45
7.1.210.0120.00815.37
7.1.200.0130.00915.55
7.1.190.0140.00815.41
7.1.180.0100.01015.58
7.1.170.0260.00915.50
7.1.160.0100.00915.52
7.1.150.0160.00515.48
7.1.140.0200.00915.62
7.1.130.0120.00815.60
7.1.120.0140.00515.47
7.1.110.0130.00715.59
7.1.100.0110.00716.04
7.1.90.0130.00815.71
7.1.80.0110.00715.64
7.1.70.0120.00615.81
7.1.60.0110.01216.54
7.1.50.0140.00915.83
7.1.40.0170.00615.65
7.1.30.0140.00915.45
7.1.20.0150.00615.38
7.1.10.0140.00315.51
7.1.00.0130.02117.18
7.0.330.0170.00415.28
7.0.320.0130.00815.15
7.0.310.0070.01215.11
7.0.300.0090.01115.38
7.0.290.0090.00815.06
7.0.280.0170.00715.18
7.0.270.0130.00715.37
7.0.260.0160.00715.13
7.0.250.0130.00615.30
7.0.240.0090.01215.22
7.0.230.0130.00615.33
7.0.220.0130.00515.30
7.0.210.0100.00715.24
7.0.200.0210.00315.60
7.0.190.0170.00315.30
7.0.180.0120.00715.31
7.0.170.0120.00715.19
7.0.160.0130.00815.16
7.0.150.0080.01015.25
7.0.140.0120.02216.86
7.0.130.0110.00715.26
7.0.120.0120.00715.11
7.0.110.0070.01015.25
7.0.100.0140.02116.31
7.0.90.0070.02116.43
7.0.80.0140.01316.37
7.0.70.0070.02516.44
7.0.60.0090.03116.38
7.0.50.0240.02016.46
7.0.40.0100.02315.46
7.0.30.0100.02315.42
7.0.20.0080.02715.37
7.0.10.0130.01915.41
7.0.00.0100.02515.33
5.6.400.0140.00815.21
5.6.390.0130.00815.00
5.6.380.0100.01014.87
5.6.370.0090.01014.65
5.6.360.0130.00914.64
5.6.350.0120.00814.95
5.6.340.0130.00814.88
5.6.330.0150.00514.92
5.6.320.0130.00914.78
5.6.310.0110.01114.76
5.6.300.0080.00914.77
5.6.290.0140.00414.95
5.6.280.0080.02416.30
5.6.270.0150.00614.88
5.6.260.0120.00714.86
5.6.250.0120.02416.32
5.6.240.0090.03016.31
5.6.230.0140.02116.12
5.6.220.0100.01916.27
5.6.210.0090.01816.17
5.6.200.0100.02816.37
5.6.190.0120.02316.38
5.6.180.0090.01716.42
5.6.170.0080.02716.27
5.6.160.0120.02116.36
5.6.150.0110.02616.29
5.6.140.0090.02916.31
5.6.130.0040.02216.35
5.6.120.0150.02516.28
5.6.110.0110.02316.36
5.6.100.0100.02616.27
5.6.90.0110.02016.26
5.6.80.0090.02916.14
5.6.70.0120.02216.17
5.6.60.0140.02016.13
5.6.50.0100.01516.08
5.6.40.0100.03016.12
5.6.30.0120.02416.26
5.6.20.0140.02316.12
5.6.10.0070.02116.19
5.6.00.0130.02416.08
5.5.380.0100.02215.92
5.5.370.0100.02615.94
5.5.360.0070.02915.80
5.5.350.0090.01715.76
5.5.340.0100.02515.87
5.5.330.0070.02115.83
5.5.320.0070.02415.91
5.5.310.0080.02515.94
5.5.300.0060.02115.93
5.5.290.0080.02915.93
5.5.280.0080.02616.09
5.5.270.0100.02515.80
5.5.260.0050.02515.97
5.5.250.0130.02215.86
5.5.240.0100.02615.64
5.5.230.0100.02015.71
5.5.220.0130.02315.80
5.5.210.0120.01415.74
5.5.200.0100.02315.75
5.5.190.0090.02415.69
5.5.180.0100.01915.76
5.5.170.0160.00514.47
5.5.160.0090.01715.70
5.5.150.0080.02015.78
5.5.140.0100.02515.67
5.5.130.0090.02115.69
5.5.120.0090.02015.66
5.5.110.0090.02615.79
5.5.100.0110.01815.73
5.5.90.0120.02115.75
5.5.80.0080.02615.63
5.5.70.0120.01815.65
5.5.60.0100.02415.63
5.5.50.0090.01715.64
5.5.40.0100.02615.72
5.5.30.0130.02315.65
5.5.20.0090.01915.76
5.5.10.0110.02415.73
5.5.00.0100.02415.68
5.4.450.0080.01514.03
5.4.440.0070.01514.00
5.4.430.0090.02214.00
5.4.420.0110.01914.01
5.4.410.0050.02813.96
5.4.400.0110.02113.94
5.4.390.0130.01213.93
5.4.380.0080.02113.95
5.4.370.0120.02113.94
5.4.360.0090.01213.96
5.4.350.0080.01613.86
5.4.340.0130.02013.93
5.4.330.0100.00512.26
5.4.320.0060.01713.91
5.4.310.0080.01613.85
5.4.300.0110.02213.91
5.4.290.0070.01713.91
5.4.280.0080.01413.86
5.4.270.0060.01713.95
5.4.260.0070.02213.88
5.4.250.0080.02213.91
5.4.240.0110.01913.92
5.4.230.0120.01713.93
5.4.220.0090.02113.96
5.4.210.0100.02213.94
5.4.200.0080.02413.88
5.4.190.0090.01313.89
5.4.180.0070.01813.87
5.4.170.0110.02013.90
5.4.160.0100.02113.88
5.4.150.0110.01613.89
5.4.140.0110.01713.29
5.4.130.0100.01413.29
5.4.120.0070.02113.26
5.4.110.0120.02013.28
5.4.100.0110.02213.26
5.4.90.0060.02513.32
5.4.80.0080.02413.30
5.4.70.0110.01813.33
5.4.60.0110.01213.25
5.4.50.0100.02013.25
5.4.40.0110.02113.29
5.4.30.0060.02113.27
5.4.20.0080.02213.27
5.4.10.0100.02013.24
5.4.00.0110.01813.10
5.3.290.0050.02412.96
5.3.280.0050.02212.91
5.3.270.0050.02412.94
5.3.260.0070.02112.95
5.3.250.0060.02412.92
5.3.240.0060.02412.94
5.3.230.0060.02312.91
5.3.220.0100.01512.89
5.3.210.0100.02112.86
5.3.200.0070.01912.95
5.3.190.0090.02312.91
5.3.180.0060.02312.96
5.3.170.0100.02612.92
5.3.160.0060.02712.96
5.3.150.0120.02112.97
5.3.140.0110.01312.94
5.3.130.0090.02212.89
5.3.120.0070.01712.93
5.3.110.0070.02412.92
5.3.100.0130.02012.81
5.3.90.0110.02212.79
5.3.80.0090.02312.72
5.3.70.0090.02412.74
5.3.60.0090.01512.79
5.3.50.0110.01312.79
5.3.40.0080.02512.77
5.3.30.0110.02012.76
5.3.20.0090.02012.69
5.3.10.0080.01512.61
5.3.00.0090.02212.65

preferences:
42.41 ms | 401 KiB | 5 Q