3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function test() {echo __METHOD__ . "\n";} public static function testStatic() {echo __METHOD__ . "\n";} } class MyClass2 extends MyClass { public function test() {echo __METHOD__ . "\n"; call_user_func(array('parent','test')); } public static function testStatic() {echo __METHOD__ . "\n"; call_user_func(array('parent','testStatic')); call_user_func(array('static','testLate'));} } class MyClass3 extends MyClass2 { public static function testLate() {echo __METHOD__ . "\n";} } echo "call object method:\n"; $o = new MyClass3(); $o->test(); $o->testStatic(); echo "call static method:\n"; MyClass3::testStatic();

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.40.0120.00318.79
8.3.30.0100.00719.08
8.3.20.0080.00019.91
8.3.10.0080.00023.66
8.3.00.0040.00419.25
8.2.170.0140.00022.96
8.2.160.0150.00020.39
8.2.150.0130.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.21
8.2.110.0130.00322.08
8.2.100.0040.00817.63
8.2.90.0000.00719.05
8.2.80.0060.00317.97
8.2.70.0050.00517.63
8.2.60.0000.00818.04
8.2.50.0050.00518.07
8.2.40.0000.00819.83
8.2.30.0030.00517.92
8.2.20.0040.00417.74
8.2.10.0040.00417.88
8.2.00.0080.00017.68
8.1.270.0040.00422.13
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.89
8.1.230.0060.00619.13
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0060.00318.54
8.1.160.0070.00021.92
8.1.150.0000.00718.88
8.1.140.0050.00217.28
8.1.130.0000.00717.82
8.1.120.0070.00017.45
8.1.110.0000.00817.38
8.1.100.0050.00217.30
8.1.90.0030.00517.41
8.1.80.0000.00717.44
8.1.70.0030.00317.32
8.1.60.0060.00317.59
8.1.50.0000.00817.48
8.1.40.0000.00817.54
8.1.30.0030.00517.71
8.1.20.0040.00417.54
8.1.10.0040.00417.47
8.1.00.0050.00317.50
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0070.00017.23
8.0.260.0000.00617.20
8.0.250.0060.00016.94
8.0.240.0000.00816.81
8.0.230.0070.00016.94
8.0.220.0070.00016.82
8.0.210.0000.00716.74
8.0.200.0080.00016.91
8.0.190.0080.00016.86
8.0.180.0070.00016.79
8.0.170.0080.00016.76
8.0.160.0050.00216.83
8.0.150.0030.00316.77
8.0.140.0000.00716.83
8.0.130.0060.00013.24
8.0.120.0030.00516.80
8.0.110.0050.00216.74
8.0.100.0040.00416.94
8.0.90.0000.00816.72
8.0.80.0160.00616.71
8.0.70.0000.00716.89
8.0.60.0000.00816.65
8.0.50.0070.00016.82
8.0.30.0110.01116.87
8.0.20.0110.00817.40
8.0.10.0000.00816.98
8.0.00.0140.00516.84
7.4.330.0050.00015.00
7.4.320.0060.00016.63
7.4.300.0000.00616.51
7.4.290.0030.00316.50
7.4.280.0030.00716.51
7.4.270.0030.00316.57
7.4.260.0000.00716.41
7.4.250.0050.00216.48
7.4.240.0060.00116.47
7.4.230.0000.00816.49
7.4.220.0110.00716.52
7.4.210.0000.01416.54
7.4.200.0050.00316.36
7.4.160.0060.01016.67
7.4.150.0030.01717.40
7.4.140.0140.00817.86
7.4.130.0120.00816.60
7.4.120.0100.01316.38
7.4.110.0100.01016.60
7.4.100.0040.01216.36
7.4.90.0100.00716.57
7.4.80.0100.00719.39
7.4.70.0130.00716.26
7.4.60.0120.00416.60
7.4.50.0050.00316.14
7.4.40.0130.00316.65
7.4.30.0030.01316.61
7.4.00.0050.01314.91
7.3.330.0050.00013.03
7.3.320.0000.00613.27
7.3.310.0040.00416.23
7.3.300.0050.00216.19
7.3.290.0130.01016.19
7.3.280.0070.00816.25
7.3.270.0100.00717.40
7.3.260.0070.01016.30
7.3.250.0120.00516.35
7.3.240.0040.01816.18
7.3.230.0140.00316.39
7.3.210.0060.01016.31
7.3.200.0150.00319.39
7.3.190.0160.00716.32
7.3.180.0110.00416.40
7.3.170.0090.01216.37
7.3.160.0080.01316.34
7.3.120.0100.00714.77
7.3.110.0070.01014.63
7.3.100.0000.01714.86
7.3.90.0030.01014.88
7.3.80.0070.00714.48
7.3.70.0030.01214.48
7.3.60.0060.00614.74
7.3.50.0070.00314.64
7.3.40.0100.00314.46
7.3.30.0070.00714.56
7.3.20.0070.00716.45
7.3.10.0100.00316.38
7.3.00.0070.00816.38
7.2.330.0090.00916.63
7.2.320.0080.01616.53
7.2.310.0140.01016.73
7.2.300.0100.00716.37
7.2.290.0090.00916.32
7.2.250.0030.00915.20
7.2.240.0070.01314.88
7.2.230.0030.00914.92
7.2.220.0090.00314.62
7.2.210.0070.00714.65
7.2.200.0070.00314.95
7.2.190.0070.00715.00
7.2.180.0040.01114.95
7.2.170.0070.00714.71
7.2.160.0100.00314.75
7.2.150.0030.00916.80
7.2.140.0080.00316.72
7.2.130.0090.00816.73
7.2.120.0070.00816.54
7.2.110.0070.00716.86
7.2.100.0100.00616.72
7.2.90.0060.00616.70
7.2.80.0080.00616.85
7.2.70.0080.00716.79
7.2.60.0090.00816.59
7.2.50.0100.00516.75
7.2.40.0070.00716.71
7.2.30.0100.00716.74
7.2.20.0050.01016.54
7.2.10.0120.00916.78
7.2.00.0130.00516.75
7.1.330.0110.00315.61
7.1.320.0030.00615.84
7.1.310.0000.00815.30
7.1.300.0060.00315.60
7.1.290.0030.01015.63
7.1.280.0060.00915.73
7.1.270.0070.00715.57
7.1.260.0100.00015.51
7.1.250.0080.01215.47
7.1.240.0070.00815.38
7.1.230.0090.00515.62
7.1.220.0050.00815.37
7.1.210.0080.00515.52
7.1.200.0080.00715.64
7.1.190.0130.00215.64
7.1.180.0080.00515.46
7.1.170.0080.00515.69
7.1.160.0120.00315.60
7.1.150.0090.00315.59
7.1.140.0120.00815.50
7.1.130.0100.00715.59
7.1.120.0100.00915.36
7.1.110.0090.00715.75
7.1.100.0110.00515.70
7.1.90.0090.00615.66
7.1.80.0060.00815.49
7.1.70.0050.00816.13
7.1.60.0070.01216.72
7.1.50.0040.01315.91
7.1.40.0070.00615.40
7.1.30.0030.00815.57
7.1.20.0040.01015.51
7.1.10.0050.01015.46
7.1.00.0080.02817.76
7.0.330.0070.00915.28
7.0.320.0050.01115.36
7.0.310.0070.00615.36
7.0.300.0050.01115.29
7.0.290.0090.00615.22
7.0.280.0090.00715.23
7.0.270.0090.00715.17
7.0.260.0070.01015.06
7.0.250.0130.00615.34
7.0.240.0080.00715.28
7.0.230.0020.01015.15
7.0.220.0070.00515.24
7.0.210.0050.00915.21
7.0.200.0100.00615.68
7.0.190.0110.00515.11
7.0.180.0070.00715.39
7.0.170.0080.00615.32
7.0.160.0070.00515.33
7.0.150.0070.00715.37
7.0.140.0100.02617.50
7.0.130.0080.00615.27
7.0.120.0040.00915.19
7.0.110.0080.00915.15
7.0.100.0080.00515.38
7.0.90.0080.00515.25
7.0.80.0050.00915.24
7.0.70.0060.00815.25
7.0.60.0130.02416.88
7.0.50.0070.03016.20
7.0.40.0080.02815.50
7.0.30.0140.02915.54
7.0.20.0150.03015.61
7.0.10.0130.02715.54
7.0.00.0060.02215.50
5.6.400.0120.00314.37
5.6.390.0030.01414.16
5.6.380.0070.00814.21
5.6.370.0040.00814.27
5.6.360.0030.01514.23
5.6.350.0040.01214.44
5.6.340.0110.00514.30
5.6.330.0110.00614.46
5.6.320.0040.00914.32
5.6.310.0020.01114.25
5.6.300.0060.00814.50
5.6.290.0050.00814.30
5.6.280.0070.02716.61
5.6.270.0020.01014.33
5.6.260.0020.00914.31
5.6.250.0050.00714.36
5.6.240.0060.00614.22
5.6.230.0070.00314.37
5.6.220.0020.00914.34
5.6.210.0120.02116.41
5.6.200.0060.02315.58
5.6.190.0110.01216.45
5.6.180.0120.01916.29
5.6.170.0150.03016.36
5.6.160.0040.02416.34
5.6.150.0070.02915.59
5.6.140.0040.01815.58
5.6.130.0070.01715.57
5.6.120.0090.03316.57
5.6.110.0010.02916.58
5.6.100.0060.03416.50
5.6.90.0080.02816.49
5.6.80.0070.02116.34
5.6.70.1590.01716.38
5.6.60.0060.00914.09
5.6.50.0030.01014.16
5.6.40.0070.00514.08
5.6.30.0050.00514.16
5.6.20.0050.00914.34
5.6.10.0070.00514.25
5.6.00.0070.00514.18
5.5.380.0060.00712.67
5.5.370.0060.00512.70
5.5.360.0030.01212.57
5.5.350.0080.02815.18
5.5.340.0090.02814.30
5.5.330.0090.02015.13
5.5.320.0160.02815.05
5.5.310.0150.03115.33
5.5.300.0060.01814.55
5.5.290.0090.02214.35
5.5.280.0080.03115.41
5.5.270.0080.02715.29
5.5.260.0050.03215.49
5.5.250.0100.02815.20
5.5.240.0120.02415.04
5.5.230.0060.00812.71
5.5.220.0060.00712.64
5.5.210.0120.00112.52
5.5.200.0070.00712.68
5.5.190.0090.00512.67
5.5.180.0060.00512.60
5.5.170.0050.00912.55
5.5.160.0070.00812.43
5.5.150.0110.00412.51
5.5.140.0080.00712.41
5.5.130.0050.00912.61
5.5.120.0080.00212.55
5.5.110.0020.01312.58
5.5.100.0050.01112.38
5.5.90.0050.00812.52
5.5.80.0020.00912.31
5.5.70.0080.00412.51
5.5.60.0040.01112.60
5.5.50.0050.00812.50
5.5.40.0030.01012.63
5.5.30.0100.00412.57
5.5.20.0020.01012.51
5.5.10.0070.00512.49
5.5.00.0110.00312.71
5.4.450.0340.02313.91
5.4.440.0200.02513.77
5.4.430.0360.02113.91
5.4.420.0230.00513.98
5.4.410.0240.00613.83
5.4.400.0280.00113.83
5.4.390.0240.00213.57
5.4.380.0270.00313.64
5.4.370.0240.00213.80
5.4.360.0240.00313.71
5.4.350.0250.00413.65
5.4.340.0060.01311.39
5.4.330.0050.00611.00
5.4.320.0070.02011.43
5.4.310.0060.01811.55
5.4.300.0040.02211.46
5.4.290.0030.01711.50
5.4.280.0040.01711.44
5.4.270.0080.01411.37
5.4.260.0070.01611.41
5.4.250.0050.02011.39
5.4.240.0070.01611.49
5.4.230.0070.01611.48
5.4.220.0050.01711.44
5.4.210.0050.01611.51
5.4.200.0060.01811.40
5.4.190.0090.01611.47
5.4.180.0040.01711.51
5.4.170.0040.01911.37
5.4.160.0050.01611.36
5.4.150.0030.01511.48
5.4.140.0070.01411.37
5.4.130.0030.01711.22
5.4.120.0080.01311.28
5.4.110.0070.02111.38
5.4.100.0050.02011.40
5.4.90.0040.02011.49
5.4.80.0040.01911.40
5.4.70.0070.01311.31
5.4.60.0060.01511.33
5.4.50.0060.01411.28
5.4.40.0030.01611.35
5.4.30.0060.01411.38
5.4.20.0050.01511.36
5.4.10.0030.01711.20
5.4.00.0040.01611.14

preferences:
36.16 ms | 400 KiB | 5 Q