3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __call($method, $args) { echo "A->$method\n"; } public static function __callStatic($method, $args) { echo "A::$method\n"; } } class B extends A { public function test1() { A::test1(); // A->test1 because A is related to B and test1 is non-static } public static function test2() { A::test2(); // A::test2 because A is related to B and test2 is static } } class C { public function test3() { A::test3(); // A::test3 because A is not related to C } public static function test4() { A::test4(); // A::test4 because A is not related to C } } $b = new B(); $b->test1(); $b::test2(); $c = new C(); $c->test3(); $c::test4();

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.4.140.0110.00917.57
8.4.130.0080.00417.79
8.4.120.0110.01024.21
8.4.110.0130.00622.41
8.4.100.0130.00718.61
8.4.90.0060.00320.52
8.4.80.0130.00618.94
8.4.70.0120.00917.82
8.4.60.0110.00624.22
8.4.50.0100.00918.64
8.4.40.0170.00319.32
8.4.30.0150.00620.52
8.4.20.0090.00920.32
8.4.10.0040.00417.57
8.3.270.0090.00916.53
8.3.260.0040.00416.55
8.3.250.0040.00419.05
8.3.240.0100.00817.01
8.3.230.0100.01016.30
8.3.220.0060.00118.79
8.3.210.0110.00518.41
8.3.200.0070.00116.82
8.3.190.0100.01116.98
8.3.180.0090.01016.26
8.3.170.0070.01417.05
8.3.160.0110.00718.29
8.3.150.0040.01518.37
8.3.140.0080.00818.94
8.3.130.0060.00318.59
8.3.120.0160.00320.55
8.3.110.0030.00720.94
8.3.100.0030.00618.59
8.3.90.0150.00426.77
8.3.80.0090.00319.36
8.3.70.0070.01016.58
8.3.60.0140.00718.30
8.3.50.0080.00718.29
8.3.40.0160.00618.59
8.3.30.0070.01118.51
8.3.20.0080.00020.85
8.3.10.0040.00423.56
8.3.00.0030.00523.66
8.2.290.0170.00220.68
8.2.280.0120.00818.64
8.2.270.0070.01117.10
8.2.260.0040.00416.63
8.2.250.0040.00416.76
8.2.240.0060.00317.21
8.2.230.0060.00322.58
8.2.220.0000.00924.06
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0040.01118.30
8.2.180.0140.00418.54
8.2.170.0110.00722.96
8.2.160.0100.00322.12
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0060.00322.09
8.2.100.0070.00717.91
8.2.90.0030.00517.63
8.2.80.0000.00917.97
8.2.70.0040.00417.93
8.2.60.0090.00018.03
8.2.50.0050.00318.10
8.2.40.0000.00719.48
8.2.30.0040.00419.17
8.2.20.0000.00818.13
8.2.10.0040.00419.29
8.2.00.0050.00219.29
8.1.330.0090.01022.13
8.1.320.0160.00416.15
8.1.310.0040.00418.36
8.1.300.0140.00020.28
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0030.00618.83
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.79
8.1.230.0080.00319.08
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.01017.10
8.1.190.0040.00417.00
8.1.180.0050.00318.10
8.1.170.0000.00818.51
8.1.160.0040.00418.88
8.1.150.0000.00718.75
8.1.140.0040.00422.14
8.1.130.0030.00319.98
8.1.120.0040.00417.32
8.1.110.0030.00617.29
8.1.100.0030.00717.24
8.1.90.0050.00217.36
8.1.80.0050.00317.41
8.1.70.0040.00417.39
8.1.60.0030.00617.48
8.1.50.0080.00017.52
8.1.40.0050.00317.41
8.1.30.0000.00817.61
8.1.20.0000.00917.64
8.1.10.0040.00417.61
8.1.00.0040.00417.56
8.0.300.0000.00819.52
8.0.290.0090.00316.75
8.0.280.0030.00718.51
8.0.270.0060.00317.25
8.0.260.0030.00318.33
8.0.250.0000.00716.96
8.0.240.0040.00416.98
8.0.230.0000.00816.93
8.0.220.0070.00316.92
8.0.210.0000.00716.91
8.0.200.0000.00916.92
8.0.190.0020.00516.96
8.0.180.0080.00016.96
8.0.170.0050.00316.93
8.0.160.0040.00416.95
8.0.150.0030.00316.89
8.0.140.0000.00716.86
8.0.130.0000.00513.32
8.0.120.0030.00616.88
8.0.110.0040.00416.73
8.0.100.0000.00716.89
8.0.90.0000.00816.70
8.0.80.0040.01816.84
8.0.70.0040.00416.75
8.0.60.0000.00716.87
8.0.50.0040.00416.74
8.0.30.0100.00617.21
8.0.20.0120.00616.80
8.0.10.0000.00816.97
8.0.00.0080.01216.68
7.4.330.0030.00316.77
7.4.320.0070.00016.54
7.4.300.0030.00316.50
7.4.290.0040.00416.52
7.4.280.0000.00716.59
7.4.270.0030.00316.52
7.4.260.0040.00416.52
7.4.250.0000.00716.54
7.4.240.0000.00716.50
7.4.230.0050.00216.59
7.4.220.0030.00516.71
7.4.210.0040.01016.54
7.4.200.0040.00416.47
7.4.160.0080.00916.57
7.4.140.0100.01017.86
7.4.130.0180.00616.59
7.4.120.0170.00616.54
7.4.110.0150.00416.34
7.4.100.0110.00916.48
7.4.90.0140.00316.54
7.4.80.0080.01619.39
7.4.70.0060.01016.63
7.4.60.0060.01116.48
7.4.50.0060.00616.64
7.4.40.0140.00716.51
7.4.00.0090.00615.01
7.3.330.0050.00013.22
7.3.320.0060.00013.25
7.3.310.0040.00416.26
7.3.300.0030.00316.30
7.3.290.0000.00816.31
7.3.280.0050.01116.27
7.3.260.0090.00916.36
7.3.240.0090.01016.46
7.3.230.0100.00716.38
7.3.210.0070.01016.25
7.3.200.0150.00316.30
7.3.190.0130.00916.43
7.3.180.0080.01116.27
7.3.170.0060.01216.34
7.3.160.0060.00916.32
7.3.00.0290.00614.51
7.2.330.0120.00916.36
7.2.320.0080.00816.81
7.2.310.0060.01216.79
7.2.300.0030.01716.77
7.2.290.0100.00716.74
7.2.130.0480.01115.00
7.2.120.0320.00614.99
7.2.110.0350.00314.65
7.2.100.0330.00714.90
7.2.90.0270.01015.18
7.2.80.0450.00714.77
7.2.70.0240.00714.68
7.2.60.0730.01014.62
7.2.50.0280.00614.59
7.2.40.0300.00914.95
7.2.30.0360.00314.86
7.2.20.0290.00014.69
7.2.10.0250.00614.63
7.2.00.0350.01015.23
7.1.250.0290.00613.82
7.0.330.0260.00413.36
5.6.380.0030.00814.10

preferences:
38.19 ms | 403 KiB | 5 Q