3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SubClass extends BaseClass { } abstract class BaseClass { public function __call($name, $arguments) { return $this->$name(); } public function foo() { return 'foo'; } protected function bar() { return 'bar'; } private function foobar() { return 'foobar'; } } $test = new SubClass(); var_dump($test->foo()); var_dump($test->bar()); var_dump($test->foobar());

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.1.100.0070.00017.44
8.1.90.0040.00417.45
8.1.80.0040.00417.48
8.1.70.0030.00317.44
8.1.60.0030.00517.63
8.1.50.0030.00517.45
8.1.40.0070.00017.55
8.1.30.0060.00317.63
8.1.20.0000.00817.63
8.1.10.0040.00417.36
8.1.00.0040.00417.42
8.0.230.0040.00416.89
8.0.220.0030.00316.89
8.0.210.0000.00716.86
8.0.200.0030.00316.82
8.0.190.0030.00516.88
8.0.180.0000.00816.89
8.0.170.0040.00416.91
8.0.160.0030.00316.90
8.0.150.0000.00716.86
8.0.140.0000.00916.89
8.0.130.0030.00313.32
8.0.120.0030.00516.88
8.0.110.0070.00016.91
8.0.100.0050.00216.95
8.0.90.0050.00217.01
8.0.80.0080.01216.83
8.0.70.0000.00716.71
8.0.60.0000.00716.80
8.0.50.0000.00716.78
8.0.30.0130.01017.05
8.0.20.0110.00917.40
8.0.10.0070.00017.05
8.0.00.0090.01416.66
7.4.300.0060.00016.59
7.4.290.0040.00416.62
7.4.280.0000.01016.50
7.4.270.0000.00816.59
7.4.260.0080.00016.43
7.4.250.0080.00016.54
7.4.240.0030.00416.46
7.4.230.0030.00316.39
7.4.220.0110.00716.46
7.4.210.0100.00516.61
7.4.200.0070.00016.39
7.4.160.0060.00916.54
7.4.150.0120.00617.40
7.4.140.0250.00817.86
7.4.130.0080.00916.48
7.4.120.0110.00516.47
7.4.110.0030.01416.65
7.4.100.0100.01016.66
7.4.90.0000.01716.43
7.4.80.0030.01319.39
7.4.70.0000.01716.50
7.4.60.0030.01316.61
7.4.50.0030.00316.61
7.4.40.0040.01416.42
7.4.30.0120.01216.27
7.4.00.0060.00915.01
7.3.330.0030.00313.30
7.3.320.0060.00013.28
7.3.310.0040.00416.33
7.3.300.0070.00016.30
7.3.290.0050.00316.11
7.3.280.0070.00816.31
7.3.270.0100.01017.40
7.3.260.0090.01516.23
7.3.250.0150.00616.52
7.3.240.0130.00316.54
7.3.230.0110.00716.48
7.3.210.0090.00916.39
7.3.200.0130.00919.39
7.3.190.0060.01516.42
7.3.180.0060.01216.55
7.3.170.0180.00316.36
7.3.160.0130.00316.25
7.3.120.0130.00514.74
7.3.110.0050.01214.95
7.3.100.0080.00814.73
7.3.90.0010.01014.78
7.3.80.0050.01014.87
7.3.70.0030.00914.63
7.3.60.0020.01214.85
7.3.50.0030.00814.80
7.3.40.0020.01014.69
7.3.30.0040.00914.61
7.3.20.0070.00916.63
7.3.10.0080.00616.43
7.3.00.0100.00516.59
7.2.330.0070.01116.61
7.2.320.0060.01116.31
7.2.310.0100.01416.54
7.2.300.0160.00016.59
7.2.290.0080.00816.44
7.2.250.0090.01015.14
7.2.240.0090.00814.67
7.2.230.0080.00814.99
7.2.220.0050.00715.00
7.2.210.0100.00514.80
7.2.200.0030.01215.03
7.2.190.0120.00314.93
7.2.180.0030.01214.96
7.2.170.0020.01214.97
7.2.160.0050.00914.68
7.2.150.0080.00716.85
7.2.140.0050.00716.85
7.2.130.0050.01116.87
7.2.120.0050.01116.77
7.2.110.0050.01016.69
7.2.100.0060.00616.98
7.2.90.0070.00916.90
7.2.80.0090.00616.90
7.2.70.0030.00716.75
7.2.60.0030.00916.82
7.2.50.0070.00716.80
7.2.40.0070.00616.85
7.2.30.0040.01016.81
7.2.20.0020.01416.74
7.2.10.0030.01016.64
7.2.00.0050.00816.88
7.1.330.0050.01215.50
7.1.320.0050.01015.84
7.1.310.0030.00615.57
7.1.300.0080.00615.58
7.1.290.0090.00515.53
7.1.280.0050.00615.70
7.1.270.0050.00815.55
7.1.260.0070.00915.68
7.1.250.0090.00515.71
7.1.240.0030.01015.81
7.1.230.0040.00815.74
7.1.220.0100.00315.71
7.1.210.0090.00615.56
7.1.200.0030.01115.57
7.1.190.0030.01015.79
7.1.180.0060.00615.76
7.1.170.0030.00715.43
7.1.160.0060.00915.48
7.1.150.0070.00315.45
7.1.140.0080.00615.75
7.1.130.0060.00615.49
7.1.120.0120.00015.71
7.1.110.0100.00315.52
7.1.100.0000.00915.82
7.1.90.0090.00915.79
7.1.80.0060.01215.77
7.1.70.0070.00616.17
7.1.60.0040.01817.62
7.1.50.0020.01616.10
7.1.40.0060.00915.74
7.1.30.0110.00615.46
7.1.20.0070.00715.68
7.1.10.0030.01315.78
7.1.00.0070.04018.95
7.0.330.0040.01115.36
7.0.320.0040.01115.48
7.0.310.0030.01015.30
7.0.300.0030.01015.30
7.0.290.0060.00615.35
7.0.280.0050.00515.10
7.0.270.0100.00315.14
7.0.260.0090.00615.34
7.0.250.0070.00715.15
7.0.240.0070.00715.32
7.0.230.0060.00915.44
7.0.220.0030.01315.16
7.0.210.0120.00615.48
7.0.200.0050.00416.03
7.0.190.0090.00615.41
7.0.180.0100.00615.16
7.0.170.0110.00315.42
7.0.160.0070.01015.44
7.0.150.0090.00615.23
7.0.140.0060.01918.75
7.0.130.0030.00615.20
7.0.120.0030.00615.25
7.0.110.0000.01215.47
7.0.100.0070.00715.47
7.0.90.0080.00415.41
7.0.80.0090.00315.48
7.0.70.0030.01015.54
7.0.60.0070.04917.63
7.0.50.0080.04316.70
7.0.40.0080.02516.72
7.0.30.0160.02616.75
7.0.20.0190.04116.68
7.0.10.0060.04516.54
7.0.00.0060.04616.68
5.6.400.0030.00614.44
5.6.390.0060.00914.07
5.6.380.0000.00914.15
5.6.370.0030.01014.21
5.6.360.0070.01014.18
5.6.350.0040.00714.39
5.6.340.0060.00614.23
5.6.330.0110.00314.25
5.6.320.0040.00714.37
5.6.310.0100.00614.26
5.6.300.0030.01014.41
5.6.290.0060.00914.39
5.6.280.0050.04117.82
5.6.270.0040.00814.29
5.6.260.0030.01014.14
5.6.250.0100.00314.39
5.6.240.0030.01414.25
5.6.230.0080.00614.35
5.6.220.0040.01114.48
5.6.210.0070.04517.43
5.6.200.0120.03716.40
5.6.190.0050.04517.48
5.6.180.0130.04817.39
5.6.170.0160.02217.40
5.6.160.0100.02817.50
5.6.150.0030.02816.27
5.6.140.0070.04316.12
5.6.130.0110.03116.27
5.6.120.0030.03917.54
5.6.110.0100.03917.63
5.6.100.0060.02617.67
5.6.90.0090.04517.65
5.6.80.0050.02617.29
5.6.70.0030.00614.49
5.6.60.0030.00814.23
5.6.50.0080.00314.10
5.6.40.0090.00614.13
5.6.30.0080.00814.46
5.6.20.0060.00914.52
5.6.10.0090.00614.18
5.6.00.0070.00714.31
5.5.380.0030.01014.23
5.5.370.0060.00614.33
5.5.360.0120.00313.95
5.5.350.0170.03317.31
5.5.340.0070.02216.25
5.5.330.0080.02317.28
5.5.320.0090.03017.26
5.5.310.0210.03717.39
5.5.300.0120.04316.08
5.5.290.0060.03715.97
5.5.280.0140.04017.55
5.5.270.0070.02417.66
5.5.260.0060.02317.46
5.5.250.0100.02017.39
5.5.240.0020.02817.22
5.5.230.0070.00714.22
5.5.220.0060.00914.26
5.5.210.0040.00413.94
5.5.200.0110.00313.99
5.5.190.0000.01714.22
5.5.180.0000.01014.13
5.5.170.0040.01114.26
5.5.160.0030.00614.02
5.5.150.0040.01114.02
5.5.140.0030.01014.05
5.5.130.0000.01213.97
5.5.120.0040.00714.27
5.5.110.0060.00914.23
5.5.100.0110.00014.34
5.5.90.0030.01114.36
5.5.80.0070.01014.33
5.5.70.0090.00614.30
5.5.60.0040.01414.01
5.5.50.0030.00914.09
5.5.40.0000.01513.79
5.5.30.0030.00914.27
5.5.20.0030.00714.13
5.5.10.0080.00413.86
5.5.00.0110.00314.28
5.4.450.0030.03716.16
5.4.440.0550.03416.17
5.4.430.0360.03516.01
5.4.420.0050.03516.01
5.4.410.0500.02716.20
5.4.400.0600.03115.92
5.4.390.0080.03315.81
5.4.380.0110.03315.81
5.4.370.0150.02515.75
5.4.360.0080.03415.87
5.4.350.0100.03015.66
5.4.340.0130.02515.84
5.4.330.0090.00312.86
5.4.320.0110.03015.80
5.4.310.0120.03015.66
5.4.300.0070.03515.79
5.4.290.0070.03515.82
5.4.280.0130.03015.70
5.4.270.0100.02815.80
5.4.260.0130.02815.80
5.4.250.0070.03615.78
5.4.240.0120.02915.72
5.4.230.0170.02815.81
5.4.220.0100.03315.84
5.4.210.0110.02915.80
5.4.200.0050.03214.74
5.4.190.0100.03015.68
5.4.180.0120.03015.81
5.4.170.0100.02915.71
5.4.160.0100.02915.81
5.4.150.0050.03315.79
5.4.140.0050.03314.54
5.4.130.0110.02614.64
5.4.120.0080.03014.56
5.4.110.0050.03614.60
5.4.100.0180.03014.64
5.4.90.0050.03314.53
5.4.80.0100.02714.56
5.4.70.0100.03014.54
5.4.60.0100.02814.55
5.4.50.0100.02714.57
5.4.40.0120.02914.55
5.4.30.0080.02914.56
5.4.20.0120.02714.63
5.4.10.0160.02314.49
5.4.00.0130.02814.37
5.3.290.0170.05314.85
5.3.280.0100.06014.66
5.3.270.0230.04714.60
5.3.260.0230.04714.74
5.3.250.0170.05314.64
5.3.240.0300.05314.85
5.3.230.0170.05314.64
5.3.220.0170.05714.68
5.3.210.0300.04314.70
5.3.200.0170.05314.78
5.3.190.0100.06014.63
5.3.180.0100.06014.59
5.3.170.0170.05314.63
5.3.160.0200.04714.70
5.3.150.0130.05314.67
5.3.140.0170.05314.63
5.3.130.0170.05314.74
5.3.120.0300.04014.56
5.3.110.0100.06014.61
5.3.100.0200.05014.07
5.3.90.0230.06314.08
5.3.80.0270.06014.25
5.3.70.0100.06314.13
5.3.60.0200.05014.09
5.3.50.0200.05014.01
5.3.40.0130.05713.99
5.3.30.0200.04713.91
5.3.20.0200.04713.92
5.3.10.0230.05313.70
5.3.00.0200.04713.68
5.2.170.0170.04311.26
5.2.160.0070.04711.21
5.2.150.0230.04011.23
5.2.140.0100.04311.13
5.2.130.0030.05011.13
5.2.120.0130.03711.21
5.2.110.0170.03711.09
5.2.100.0100.04311.21
5.2.90.0130.04011.11
5.2.80.0130.04311.18
5.2.70.0130.04711.14
5.2.60.0170.03711.07
5.2.50.0130.04711.15
5.2.40.0100.04011.02
5.2.30.0170.04311.05
5.2.20.0100.04311.04
5.2.10.0130.04010.88
5.2.00.0170.03710.79
5.1.60.0130.04310.04
5.1.50.0200.02710.04
5.1.40.0130.04010.11
5.1.30.0200.04310.33
5.1.20.0170.03310.55
5.1.10.0100.03710.21
5.1.00.0100.03710.26
5.0.50.0100.0378.69
5.0.40.0100.0278.44
5.0.30.0130.0408.27
5.0.20.0100.0278.23
5.0.10.0130.0278.31
5.0.00.0070.0438.25
4.4.90.0030.0336.00
4.4.80.0070.0305.93
4.4.70.0070.0305.89
4.4.60.0030.0275.98
4.4.50.0130.0175.89
4.4.40.0070.0375.91
4.4.30.0070.0235.97
4.4.20.0070.0205.94
4.4.10.0100.0206.03
4.4.00.0030.0435.90
4.3.110.0100.0175.84
4.3.100.0130.0135.93
4.3.90.0100.0175.89
4.3.80.0030.0335.80
4.3.70.0170.0105.78
4.3.60.0030.0235.78
4.3.50.0070.0235.91
4.3.40.0070.0335.75
4.3.30.0030.0304.64
4.3.20.0000.0274.54
4.3.10.0130.0134.61
4.3.00.0000.03314.52

preferences:
66.43 ms | 406 KiB | 5 Q