3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $c = "-\n"; private function __call($name, $args) { echo $name.$this->c; } private function foo() { echo 'ahoj'; } } class B extends A { public function bar() { echo $this->foo()."\n"; } } $a = new B; $a->bar(); call_user_func(array($a, 'foo')); $ref = new ReflectionClass($a); var_dump($ref->hasMethod('__CalL'));

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.0120.00918.43
8.3.50.0100.00521.14
8.3.40.0110.00418.83
8.3.30.0040.01120.40
8.3.20.0050.00320.29
8.3.10.0060.00322.05
8.3.00.0050.00222.52
8.2.180.0130.00318.54
8.2.170.0090.00622.96
8.2.160.0150.00020.48
8.2.150.0030.00524.18
8.2.140.0120.00624.66
8.2.130.0110.00726.16
8.2.120.0080.00019.78
8.2.110.0060.00322.03
8.2.100.0040.00717.84
8.2.90.0040.00419.30
8.2.80.0000.00719.21
8.2.70.0000.00817.61
8.2.60.0040.00417.91
8.2.50.0080.00018.07
8.2.40.0070.00018.09
8.2.30.0000.00918.06
8.2.20.0020.00517.67
8.2.10.0040.00417.69
8.2.00.0060.00317.69
8.1.280.0070.00725.92
8.1.270.0140.00324.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.83
8.1.230.0110.00019.15
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0120.00017.10
8.1.190.0030.00617.39
8.1.180.0060.00318.77
8.1.170.0050.00318.52
8.1.160.0000.00722.14
8.1.150.0000.00718.60
8.1.140.0000.00717.33
8.1.130.0000.00717.92
8.1.120.0030.00617.51
8.1.110.0030.00517.50
8.1.100.0000.00717.46
8.1.90.0080.00017.42
8.1.80.0050.00317.44
8.1.70.0040.00417.39
8.1.60.0050.00317.47
8.1.50.0030.00517.50
8.1.40.0000.00817.34
8.1.30.0000.00717.61
8.1.20.0040.00417.63
8.1.10.0080.00017.43
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0040.00417.28
8.0.280.0030.00518.44
8.0.270.0030.00317.26
8.0.260.0070.00016.95
8.0.250.0000.00717.04
8.0.240.0000.00816.93
8.0.230.0030.00316.92
8.0.220.0050.00316.93
8.0.210.0000.00716.99
8.0.200.0060.00016.98
8.0.190.0040.00417.07
8.0.180.0050.00216.87
8.0.170.0030.00517.02
8.0.160.0040.00416.89
8.0.150.0000.00716.98
8.0.140.0030.00516.98
8.0.130.0000.00513.35
8.0.120.0040.00416.75
8.0.110.0080.00016.85
8.0.100.0040.00416.95
8.0.90.0000.00716.82
8.0.80.0110.00616.91
8.0.70.0080.00016.91
8.0.60.0070.00016.86
8.0.50.0040.00417.03
8.0.30.0070.01517.07
8.0.20.0110.00817.40
8.0.10.0070.00017.16
8.0.00.0080.01216.81
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0000.00616.48
7.4.290.0040.00416.66
7.4.280.0030.00316.63
7.4.270.0000.00616.63
7.4.260.0050.00216.49
7.4.250.0050.00216.52
7.4.240.0040.00416.60
7.4.230.0070.00016.59
7.4.220.0130.01016.68
7.4.210.0070.00816.60
7.4.200.0070.00016.41
7.4.190.0040.00416.77
7.4.160.0040.01116.51
7.4.150.0130.00917.40
7.4.140.0090.01017.86
7.4.130.0140.00516.54
7.4.120.0120.00616.53
7.4.110.0090.00916.42
7.4.100.0150.00616.44
7.4.90.0100.00616.45
7.4.80.0130.00319.39
7.4.70.0140.01116.52
7.4.60.0110.00516.54
7.4.50.0030.00316.63
7.4.40.0030.01422.77
7.4.30.0100.01016.37
7.4.00.0040.01114.75
7.3.330.0000.00513.23
7.3.320.0000.00513.32
7.3.310.0070.00016.40
7.3.300.0040.00416.32
7.3.290.0070.00716.38
7.3.280.0060.00916.34
7.3.270.0090.00917.40
7.3.260.0120.00616.55
7.3.250.0110.00816.50
7.3.240.0040.01316.32
7.3.230.0140.00716.53
7.3.210.0110.01016.56
7.3.200.0090.00919.39
7.3.190.0070.01016.34
7.3.180.0070.01416.41
7.3.170.0000.01516.62
7.3.160.0070.01016.57
7.3.120.0090.00614.81
7.2.330.0060.01216.70
7.2.320.0060.01616.80
7.2.310.0120.00916.55
7.2.300.0130.00416.63
7.2.290.0130.00616.63
7.2.00.0000.01319.25
7.1.100.0000.01017.77
7.1.70.0040.00717.01
7.1.60.0100.00719.29
7.1.50.0070.01617.04
7.1.00.0000.05022.54
7.0.200.0880.00714.73
7.0.140.0030.07322.12
7.0.60.0100.08319.96
7.0.50.0100.05017.89
7.0.40.0070.05020.23
7.0.30.0300.07720.11
7.0.20.0200.05720.06
7.0.10.0030.06020.37
7.0.00.0030.04320.25
5.6.280.0100.06720.80
5.6.210.0070.07720.62
5.6.200.0030.08318.18
5.6.190.0100.08020.68
5.6.180.0300.07020.33
5.6.170.0300.07720.44
5.6.160.0100.07020.39
5.6.150.0030.08718.27
5.6.140.0170.04718.27
5.6.130.0070.04018.14
5.6.120.0130.07720.99
5.6.110.0170.08021.12
5.6.100.0070.07321.11
5.6.90.0100.06721.07
5.6.80.0130.07020.39
5.5.350.0270.07720.43
5.5.340.0070.07718.09
5.5.330.0130.08320.21
5.5.320.0300.06720.35
5.5.310.0370.07320.42
5.5.300.0030.04017.92
5.5.290.0070.06718.10
5.5.280.0000.05020.90
5.5.270.0000.08720.96
5.5.260.0270.06320.69
5.5.250.0070.04720.72
5.5.240.0070.08020.27
5.4.450.0170.04319.31
5.4.440.0200.04319.55
5.4.430.0370.07019.47
5.4.420.0170.06019.38
5.4.410.0270.07019.39
5.4.400.0230.05019.09
5.4.390.0200.04319.14
5.4.380.0270.04719.32
5.4.370.0230.06719.09
5.4.360.0100.06019.08
5.4.350.0130.08719.14
5.4.340.0230.05019.14
5.4.320.0300.06019.09
5.4.310.0530.03719.16
5.4.300.0230.07019.04
5.4.290.0270.06019.21
5.4.280.0230.07719.24
5.4.270.0300.06019.23
5.4.260.0200.07718.85
5.4.250.0430.06719.14
5.4.240.0230.06719.13
5.4.230.0400.03318.94
5.4.220.0300.06019.20
5.4.210.0270.03319.05
5.4.200.0200.06319.19
5.4.190.0270.07719.07
5.4.180.0230.06718.98
5.4.170.0270.06318.88
5.4.160.0300.07319.04
5.4.150.0270.07019.07
5.4.140.0300.04316.55
5.4.130.0230.04316.38
5.4.120.0200.05716.56
5.4.110.0270.06716.45
5.4.100.0170.07016.50
5.4.90.0230.05716.51
5.4.80.0330.05716.59
5.4.70.0230.07316.29
5.4.60.0200.06016.52
5.4.50.0330.04316.24
5.4.40.0300.05716.34
5.4.30.0100.06016.48
5.4.20.0170.07716.32
5.4.10.0200.05716.42
5.4.00.0230.04015.80
5.3.290.0230.07314.75
5.3.280.0230.07714.71
5.3.270.0370.07314.52
5.3.260.0230.05714.59
5.3.250.0270.04714.63
5.3.240.0230.03714.59
5.3.230.0230.07014.72
5.3.220.0270.06714.69
5.3.210.0230.06714.50
5.3.200.0200.07314.66
5.3.190.0230.07314.69
5.3.180.0130.05314.63
5.3.170.0300.07014.49
5.3.160.0300.06314.57
5.3.150.0200.08014.57
5.3.140.0300.04714.61
5.3.130.0270.05014.67
5.3.120.0200.07314.55
5.3.110.0270.06014.78
5.3.100.0170.05714.09
5.3.90.0130.04014.00
5.3.80.0200.03313.93
5.3.70.0230.03013.93
5.3.60.0200.03313.92
5.3.50.0200.06313.96
5.3.40.0270.04714.18
5.3.30.0270.04313.89
5.3.20.0270.07313.61
5.3.10.0170.04313.56
5.3.00.0270.05713.72
5.2.170.0100.03312.05
5.2.160.0200.03012.05
5.2.150.0170.06012.05
5.2.140.0230.05312.05
5.2.130.0200.02712.05
5.2.120.0170.02712.05
5.2.110.0370.02312.05
5.2.100.0200.06012.05
5.2.90.0170.03012.05
5.2.80.0230.05012.05
5.2.70.0200.06012.05
5.2.60.0230.03312.05
5.2.50.0270.02012.05
5.2.40.0200.06012.05
5.2.30.0200.05312.05
5.2.20.0130.04012.05
5.2.10.0200.05012.05
5.2.00.0200.05712.05
5.1.60.0170.04312.05
5.1.50.0270.04012.05
5.1.40.0170.03312.05
5.1.30.0200.03712.05
5.1.20.0100.03312.05
5.1.10.0100.03712.05
5.1.00.0170.04012.05
5.0.50.0130.04312.05
5.0.40.0070.04712.05
5.0.30.0100.06312.05
5.0.20.0130.03012.05
5.0.10.0070.03012.05
5.0.00.0070.03012.05
4.4.90.0170.02712.05
4.4.80.0030.02312.05
4.4.70.0100.02012.05
4.4.60.0000.03712.05
4.4.50.0100.02012.05
4.4.40.0130.04012.05
4.4.30.0100.01712.05
4.4.20.0030.02012.05
4.4.10.0070.02712.05
4.4.00.0070.04712.05
4.3.110.0030.02712.05
4.3.100.0070.03712.05
4.3.90.0100.02312.05
4.3.80.0070.05312.05
4.3.70.0170.02012.05
4.3.60.0030.02712.05
4.3.50.0070.01712.05
4.3.40.0070.05312.05
4.3.30.0030.03712.05
4.3.20.0030.01712.05
4.3.10.0030.03312.05
4.3.00.0070.03312.05

preferences:
48.39 ms | 401 KiB | 5 Q