3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass{ protected function run(){} public function __call($method,$arguments) { echo "<br/>######Call ". get_called_class()."########<br>"; if(method_exists($this, $method)) { call_user_func_array(array($this,$method),$arguments); } } } class first_child extends ParentClass{ protected function run(){ echo "<br>running " . get_called_class(); $x= new second_child; $x->run(); } } class second_child extends ParentClass{ protected function run(){ echo "<br>running " . get_called_class(); } } $y= new first_child; $y->run();

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.0060.01318.43
8.3.50.0140.00721.14
8.3.40.0080.01118.79
8.3.30.0130.00319.17
8.3.20.0040.00420.38
8.3.10.0050.00322.04
8.3.00.0000.00822.40
8.2.180.0040.01116.59
8.2.170.0120.00322.96
8.2.160.0100.00319.29
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0040.00419.79
8.2.110.0000.00920.52
8.2.100.0090.00318.22
8.2.90.0000.00719.22
8.2.80.0040.00418.05
8.2.70.0000.00817.49
8.2.60.0060.00317.91
8.2.50.0040.00418.07
8.2.40.0000.00718.09
8.2.30.0070.00018.06
8.2.20.0000.00717.59
8.2.10.0020.00517.68
8.2.00.0000.00817.57
8.1.280.0070.01425.92
8.1.270.0080.00021.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0110.00018.99
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0000.00817.52
8.1.180.0030.00618.76
8.1.170.0080.00018.61
8.1.160.0070.00022.05
8.1.150.0030.00518.52
8.1.140.0020.00517.46
8.1.130.0000.00717.89
8.1.120.0030.00517.39
8.1.110.0070.00017.51
8.1.100.0070.00017.48
8.1.90.0040.00417.48
8.1.80.0030.00317.35
8.1.70.0000.00717.47
8.1.60.0040.00417.58
8.1.50.0000.00817.59
8.1.40.0000.00717.55
8.1.30.0030.00617.67
8.1.20.0040.00417.56
8.1.10.0070.00017.49
8.1.00.0060.00317.41
8.0.300.0050.00318.77
8.0.290.0030.00617.05
8.0.280.0000.00818.53
8.0.270.0070.00017.33
8.0.260.0060.00016.84
8.0.250.0000.00716.87
8.0.240.0060.00316.95
8.0.230.0050.00216.98
8.0.220.0000.00716.82
8.0.210.0070.00016.91
8.0.200.0000.00616.87
8.0.190.0060.00617.00
8.0.180.0040.00416.85
8.0.170.0040.00416.93
8.0.160.0080.00016.90
8.0.150.0030.00516.83
8.0.140.0000.00716.75
8.0.130.0000.00613.28
8.0.120.0000.00816.87
8.0.110.0040.00416.96
8.0.100.0000.00716.87
8.0.90.0040.00416.73
8.0.80.0110.00416.81
8.0.70.0040.00416.96
8.0.60.0000.00716.95
8.0.50.0000.00817.01
8.0.30.0080.01317.20
8.0.20.0130.00917.40
8.0.10.0000.00816.82
8.0.00.0090.00816.79
7.4.330.0030.00315.00
7.4.320.0000.00616.53
7.4.300.0000.00716.37
7.4.290.0040.00416.51
7.4.280.0040.00416.50
7.4.270.0080.00016.48
7.4.260.0070.00016.50
7.4.250.0070.00016.49
7.4.240.0020.00616.52
7.4.230.0070.00016.64
7.4.220.0030.01116.55
7.4.210.0060.01016.57
7.4.200.0040.00416.69
7.4.190.0030.00316.61
7.4.160.0080.00816.51
7.4.150.0140.00417.40
7.4.140.0100.00817.86
7.4.130.0040.01416.50
7.4.120.0090.00916.59
7.4.110.0090.01616.49
7.4.100.0160.00316.64
7.4.90.0100.00716.38
7.4.80.0060.01019.39
7.4.70.0100.00916.53
7.4.60.0060.01716.46
7.4.50.0000.00816.36
7.4.40.0070.01022.77
7.4.30.0140.00816.39
7.4.10.0090.00914.81
7.4.00.0050.01214.80
7.3.330.0000.00513.18
7.3.320.0030.00313.18
7.3.310.0000.00716.21
7.3.300.0030.00316.36
7.3.290.0070.01316.33
7.3.280.0060.01016.29
7.3.270.0200.00317.40
7.3.260.0070.01716.21
7.3.250.0130.00716.29
7.3.240.0130.00316.61
7.3.230.0150.00816.56
7.3.210.0140.00316.23
7.3.200.0170.00619.39
7.3.190.0090.01216.50
7.3.180.0030.01216.59
7.3.170.0040.01116.32
7.3.160.0110.00516.39
7.3.130.0100.01015.09
7.3.120.0080.00814.77
7.3.110.0070.01415.04
7.3.100.0110.00414.85
7.3.90.0090.00614.88
7.3.80.0030.00914.92
7.3.70.0000.01214.86
7.3.60.0000.01214.82
7.3.50.0000.01114.84
7.3.40.0000.01414.73
7.3.30.0100.00714.82
7.3.20.0100.00316.65
7.3.10.0000.01116.68
7.3.00.0000.01516.65
7.2.330.0090.01316.73
7.2.320.0090.00916.77
7.2.310.0060.01616.47
7.2.300.0120.00616.82
7.2.290.0120.00316.84
7.2.260.0090.01215.09
7.2.250.0030.01514.91
7.2.240.0000.01515.28
7.2.230.0030.00715.16
7.2.220.0080.00814.84
7.2.210.0080.00814.91
7.2.200.0060.00914.86
7.2.190.0030.01014.85
7.2.180.0000.00915.00
7.2.170.0090.00614.94
7.2.160.0130.00315.06
7.2.150.0090.00616.94
7.2.140.0030.01416.99
7.2.130.0100.00016.94
7.2.120.0030.01416.71
7.2.110.0000.01916.88
7.2.100.0040.00816.93
7.2.90.0090.00616.97
7.2.80.0040.01116.89
7.2.70.0100.00616.91
7.2.60.0020.01416.92
7.2.50.0090.00616.92
7.2.40.0040.01217.06
7.2.30.0000.01317.05
7.2.20.0060.01017.03
7.2.10.0030.01417.06
7.2.00.0080.00518.28
7.1.330.0060.01015.94
7.1.320.0160.00315.45
7.1.310.0060.00915.57
7.1.300.0070.00715.89
7.1.290.0070.00715.96
7.1.280.0070.00715.73
7.1.270.0100.00315.75
7.1.260.0070.00715.68
7.1.250.0070.01015.82
7.1.240.0090.00915.73
7.1.230.0060.01215.87
7.1.220.0060.00615.57
7.1.210.0070.00715.95
7.1.200.0050.00715.71
7.1.190.0060.00915.84
7.1.180.0030.01015.73
7.1.170.0060.00815.86
7.1.160.0030.01315.73
7.1.150.0060.00615.71
7.1.140.0000.01615.64
7.1.130.0040.00815.88
7.1.120.0090.00615.79
7.1.110.0070.00715.90
7.1.100.0300.00615.46
7.1.90.0090.00615.81
7.1.80.0040.00815.61
7.1.70.0030.01216.44
7.1.60.0030.01517.86
7.1.50.0050.01116.32
7.1.40.0060.00315.62
7.1.30.0030.00715.61
7.1.20.0030.00715.93
7.1.10.0030.01415.88
7.1.00.0020.04119.08
7.0.330.0080.01115.18
7.0.320.0030.01015.45
7.0.310.0120.00315.42
7.0.300.0100.00015.20
7.0.290.0060.00915.38
7.0.280.0000.01015.27
7.0.270.0070.00715.33
7.0.260.0110.00015.55
7.0.250.0060.00615.52
7.0.240.0000.01315.50
7.0.230.0100.00615.59
7.0.220.0060.00615.41
7.0.210.0100.00315.67
7.0.200.0050.00616.15
7.0.190.0030.00915.61
7.0.180.0000.01315.27
7.0.170.0040.00415.64
7.0.160.0050.00515.46
7.0.150.0090.00315.45
7.0.140.0060.04018.61
7.0.130.0060.00915.39
7.0.120.0070.00715.40
7.0.110.0060.00315.48
7.0.100.0060.00915.21
7.0.90.0030.00915.47
7.0.80.0000.01215.30
7.0.70.2220.02217.76
7.0.60.0100.03817.59
7.0.50.0110.03816.72
7.0.40.0060.03516.76
7.0.30.0110.02316.87
7.0.20.0200.01916.84
7.0.10.0170.04016.79
7.0.00.0130.04216.89
5.6.400.0060.00614.28
5.6.390.0100.00714.39
5.6.380.0090.00614.27
5.6.370.0100.00314.33
5.6.360.0040.00714.24
5.6.350.0070.01014.46
5.6.340.0060.00614.43
5.6.330.0110.00314.33
5.6.320.0030.01014.18
5.6.310.0060.00614.49
5.6.300.0070.00314.28
5.6.290.0060.00614.42
5.6.280.0070.03717.70
5.6.270.0030.00614.35
5.6.260.0070.00314.40
5.6.250.0040.00414.67
5.6.240.0030.00914.53
5.6.230.0000.01614.52
5.6.220.0060.00614.11
5.6.210.0070.03517.47
5.6.200.0100.04416.19
5.6.190.0130.04217.49
5.6.180.0120.02917.43
5.6.170.0240.03917.42
5.6.160.0080.02317.40
5.6.150.0000.03516.13
5.6.140.0020.04916.45
5.6.130.0050.04516.21
5.6.120.0050.02617.52
5.6.110.0030.04917.77
5.6.100.0100.03617.63
5.6.90.0100.04317.71
5.6.80.0140.03717.38
5.6.70.0090.02017.28
5.6.60.0070.00714.38
5.6.50.0060.00914.31
5.6.40.0120.00314.49
5.6.30.0040.01214.33
5.6.20.0060.01014.27
5.6.10.0060.00614.10
5.6.00.0080.00814.19
5.5.380.0080.00614.34
5.5.370.0030.01214.14
5.5.360.0060.00614.50
5.5.350.0090.04017.33
5.5.340.0050.05016.13
5.5.330.0080.04317.21
5.5.320.0080.01817.39
5.5.310.0130.04717.40
5.5.300.0060.03216.03
5.5.290.0080.02516.17
5.5.280.0090.02217.49
5.5.270.0110.04317.61
5.5.260.0090.03217.56
5.5.250.0150.03017.33
5.5.240.0090.03817.32
5.5.230.0070.00314.41
5.5.220.0030.01014.21
5.5.210.0070.00714.10
5.5.200.0040.01214.11
5.5.190.0040.01114.09
5.5.180.0060.00614.11
5.5.170.0110.00614.02
5.5.160.0000.01514.09
5.5.150.0030.00914.28
5.5.140.0090.00013.71
5.5.130.0100.00314.30
5.5.120.0070.01113.92
5.5.110.0080.00314.25
5.5.100.0030.01214.34
5.5.90.0130.00314.09
5.5.80.0040.01114.21
5.5.70.0100.00014.43
5.5.60.0060.00914.28
5.5.50.0070.01014.44
5.5.40.0030.01314.28
5.5.30.0090.00014.40
5.5.20.0090.00614.03
5.5.10.0070.00714.26
5.5.00.0030.01114.18
5.4.450.0330.03215.39
5.4.440.0370.03915.36
5.4.430.0490.02515.46
5.4.420.0450.03515.41
5.4.410.0500.02815.22
5.4.400.0470.02915.14
5.4.390.0430.03014.97
5.4.380.0150.02814.73
5.4.370.0120.02414.92
5.4.360.0120.02614.84
5.4.350.0040.02211.56
5.4.340.0110.01711.62
5.4.330.0040.01210.88
5.4.320.0070.02611.63
5.4.310.0050.02111.85
5.4.300.0050.02011.68
5.4.290.0060.02311.77
5.4.280.0040.02811.56
5.4.270.0080.02311.74
5.4.260.0080.03014.82
5.4.250.0050.03015.14
5.4.240.0080.03214.95
5.4.230.0040.03414.90
5.4.220.0030.03415.08
5.4.210.0110.02514.98
5.4.200.0150.03515.06
5.4.190.0020.03514.75
5.4.180.0050.03915.05
5.4.170.0100.03014.95
5.4.160.0120.02014.72
5.4.150.0140.03014.94
5.4.140.0090.02513.64
5.4.130.0100.02213.80
5.4.120.0050.02813.60
5.4.110.0080.03513.82
5.4.100.0120.02213.89
5.4.90.0030.04013.61
5.4.80.0070.02513.87
5.4.70.0070.02813.72
5.4.60.0070.02513.67
5.4.50.0080.02513.82
5.4.40.0120.02713.91
5.4.30.0030.03013.64
5.4.20.0020.03313.82
5.4.10.0050.02813.79
5.4.00.0080.02513.56
5.3.290.0080.02611.66
5.3.280.0120.02212.58
5.3.270.0030.03212.49
5.3.260.0050.03012.68
5.3.250.0050.03512.52
5.3.240.0050.02812.63
5.3.230.0120.03312.68
5.3.220.0120.02512.55
5.3.210.0120.03112.42
5.3.200.0080.03912.46
5.3.190.0100.02312.60
5.3.180.0070.04012.66
5.3.170.0030.03012.60
5.3.160.0050.03012.70
5.3.150.0020.03112.57
5.3.140.0100.02212.62
5.3.130.0080.02612.60
5.3.120.0100.02812.62
5.3.110.0080.02812.48
5.3.100.0050.02712.38
5.3.90.0070.02912.16
5.3.80.0130.02212.31
5.3.70.0050.02912.28
5.3.60.0020.03212.27
5.3.50.0040.03012.26
5.3.40.0050.02812.24
5.3.30.0070.02812.22
5.3.20.0000.03512.05
5.3.10.0130.02111.91
5.3.00.0060.02812.06
5.2.170.0070.05011.18
5.2.160.0070.04711.32
5.2.150.0130.03711.38
5.2.140.0100.04010.97
5.2.130.0100.04011.29
5.2.120.0130.03311.19
5.2.110.0100.05011.29
5.2.100.0130.03311.29
5.2.90.0000.04711.08
5.2.80.0130.04311.18
5.2.70.0200.04011.28
5.2.60.0000.04711.05
5.2.50.0100.04011.11
5.2.40.0100.03711.08
5.2.30.0070.04010.95
5.2.20.0000.04310.95
5.2.10.0030.06010.95
5.2.00.0130.03010.81
5.1.60.0230.02710.02
5.1.50.0070.03310.06
5.1.40.0070.03310.08
5.1.30.0070.03710.31
5.1.20.0100.04010.33
5.1.10.0000.03710.05
5.1.00.0130.02710.04
5.0.50.0030.0308.61
5.0.40.0070.0238.39
5.0.30.0000.0438.32
5.0.20.0030.0278.27
5.0.10.0070.0238.34
5.0.00.0000.0438.27
4.4.90.0000.0236.38
4.4.80.0030.0206.36
4.4.70.0000.0306.36
4.4.60.0000.0236.36
4.4.50.0030.0306.36
4.4.40.0070.0376.36
4.4.30.0070.0176.36
4.4.20.0070.0306.36
4.4.10.0030.0236.36
4.4.00.0000.0476.36
4.3.110.0000.0236.36
4.3.100.0100.0136.36
4.3.90.0030.0176.36
4.3.80.0030.0336.36
4.3.70.0100.0136.36
4.3.60.0070.0236.96
4.3.50.0000.0336.96
4.3.40.0030.0476.96
4.3.30.0000.0236.96
4.3.20.0000.0236.96
4.3.10.0000.0236.96
4.3.00.0130.0277.16

preferences:
40.78 ms | 401 KiB | 5 Q