3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __call($name, $arguments) { call_user_func_array(array($this, "_{$name}"), $arguments); } public function __callStatic($name, $arguments) { call_user_func_array(get_class() . "::_static_{$name}", $arguments); } public function _test() { print "in _test();\n"; } public function _static_test() { print "in _static_test();\n"; } } $a = new A; $a->test(); A::test();

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.0080.00618.43
8.3.50.0140.00521.94
8.3.40.0120.00318.67
8.3.30.0090.00618.75
8.3.20.0080.00020.21
8.3.10.0040.00423.78
8.3.00.0030.00622.38
8.2.180.0100.00716.75
8.2.170.0120.00322.96
8.2.160.0030.01020.21
8.2.150.0070.00724.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0060.00320.29
8.2.100.0070.00417.59
8.2.90.0000.00719.09
8.2.80.0040.00417.97
8.2.70.0000.00917.25
8.2.60.0080.00017.91
8.2.50.0000.00918.07
8.2.40.0060.00618.03
8.2.30.0050.00317.96
8.2.20.0000.00717.59
8.2.10.0040.00419.35
8.2.00.0040.00417.42
8.1.280.0140.00325.92
8.1.270.0040.00422.09
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0140.00323.82
8.1.230.0080.00322.12
8.1.220.0040.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00817.11
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0100.00018.40
8.1.160.0050.00221.86
8.1.150.0040.00418.57
8.1.140.0050.00317.19
8.1.130.0060.00017.70
8.1.120.0000.00817.32
8.1.110.0030.00317.32
8.1.100.0030.00517.34
8.1.90.0000.00717.32
8.1.80.0000.00717.28
8.1.70.0030.00317.20
8.1.60.0080.00017.36
8.1.50.0080.00017.38
8.1.40.0040.00417.31
8.1.30.0040.00417.51
8.1.20.0040.00417.52
8.1.10.0040.00417.42
8.1.00.0070.00017.21
8.0.300.0040.00418.77
8.0.290.0040.00416.91
8.0.280.0030.00318.30
8.0.270.0000.00717.11
8.0.260.0000.00618.30
8.0.250.0030.00316.88
8.0.240.0030.00316.79
8.0.230.0040.00416.95
8.0.220.0000.00716.88
8.0.210.0030.00316.79
8.0.200.0060.00016.90
8.0.190.0070.00016.85
8.0.180.0000.00716.87
8.0.170.0030.00616.81
8.0.160.0000.00716.82
8.0.150.0030.00616.88
8.0.140.0000.00716.82
8.0.130.0000.00613.18
8.0.120.0080.00016.76
8.0.110.0000.00716.78
8.0.100.0040.00416.84
8.0.90.0030.00616.61
8.0.80.0030.01616.75
8.0.70.0040.00416.88
8.0.60.0000.00716.77
8.0.50.0070.00016.76
8.0.30.0110.00817.03
8.0.20.0100.00917.40
8.0.10.0040.00416.90
8.0.00.0080.01116.48
7.4.330.0050.00015.00
7.4.320.0070.00016.61
7.4.300.0030.00316.59
7.4.290.0100.00016.52
7.4.280.0030.00516.59
7.4.270.0000.00716.60
7.4.260.0040.00416.46
7.4.250.0000.00916.49
7.4.240.0010.00616.59
7.4.230.0070.00016.69
7.4.220.0000.01516.55
7.4.210.0110.00416.49
7.4.200.0050.00216.70
7.4.190.0000.00716.68
7.4.160.0060.00916.70
7.4.150.0030.01417.40
7.4.140.0110.00717.86
7.4.130.0130.00616.58
7.4.120.0130.00516.65
7.4.110.0060.01016.70
7.4.100.0090.00916.50
7.4.90.0070.01116.66
7.4.80.0000.02216.64
7.4.70.0080.00816.59
7.4.60.0080.00816.57
7.4.50.0030.00316.38
7.4.40.0130.00322.77
7.4.30.0120.00616.48
7.4.00.0070.01015.08
7.3.330.0060.00013.42
7.3.320.0030.00313.34
7.3.310.0000.00716.53
7.3.300.0030.00316.38
7.3.290.0030.01016.35
7.3.280.0110.00616.42
7.3.270.0070.01017.40
7.3.260.0100.01016.69
7.3.250.0130.00416.44
7.3.240.0140.00316.45
7.3.230.0210.00016.57
7.3.210.0090.00916.29
7.3.200.0040.01519.39
7.3.190.0080.00816.64
7.3.180.0100.00716.49
7.3.170.0080.00716.31
7.3.160.0090.00816.55
7.3.120.0030.01014.79
7.3.110.0080.00814.99
7.3.100.0070.00714.82
7.3.90.0060.00914.82
7.3.80.0070.00714.96
7.3.70.0080.00814.95
7.3.60.0080.00814.71
7.3.50.0060.00614.44
7.3.40.0100.00314.90
7.3.30.0000.01414.73
7.3.20.0070.01016.39
7.3.10.0040.01416.59
7.3.00.0060.00616.57
7.2.330.0120.01616.75
7.2.320.0060.00916.61
7.2.310.0100.00716.43
7.2.300.0030.01316.52
7.2.290.0140.00316.61
7.2.240.0030.01014.95
7.2.230.0070.00715.29
7.2.220.0060.00915.12
7.2.210.0090.00615.11
7.2.200.0070.00414.94
7.2.190.0000.01315.08
7.2.180.0120.00315.08
7.2.170.0070.01114.93
7.2.160.0000.01815.10
7.2.150.0120.00317.00
7.2.140.0030.00816.84
7.2.130.0060.00916.71
7.2.120.0140.00316.98
7.2.110.0060.00617.07
7.2.100.0130.00316.82
7.2.90.0070.00717.06
7.2.80.0060.00616.83
7.2.70.0080.00816.73
7.2.60.0050.00916.83
7.2.50.0070.01116.93
7.2.40.0060.00916.82
7.2.30.0050.00516.55
7.2.20.0030.01116.54
7.2.10.0060.00616.73
7.2.00.0080.00618.27
7.1.330.0110.00315.88
7.1.320.0080.00315.70
7.1.310.0000.01315.77
7.1.300.0130.00015.61
7.1.290.0030.00715.71
7.1.280.0070.00315.71
7.1.270.0000.01315.72
7.1.260.0100.00315.86
7.1.250.0030.01315.57
7.1.200.0000.01315.62
7.1.100.0030.00918.14
7.1.70.0030.00317.14
7.1.60.0030.02019.32
7.1.50.0060.01317.02
7.1.00.0070.07322.46
7.0.200.0040.00416.81
7.0.140.0070.06322.00
7.0.100.0100.08019.96
7.0.90.0070.05019.86
7.0.80.0000.07720.00
7.0.70.0330.06319.92
7.0.60.0070.05319.98
7.0.50.0330.05720.35
7.0.40.0130.04320.09
7.0.30.0100.03720.23
7.0.20.0000.04720.15
7.0.10.0030.04319.99
7.0.00.0100.03720.07
5.6.280.0130.06320.79
5.6.250.0030.05320.57
5.6.240.0030.07320.70
5.6.230.0030.07320.59
5.6.220.0000.07720.50
5.6.210.0070.07320.63
5.6.200.0070.08321.15
5.6.190.0170.06320.97
5.6.180.0030.04321.01
5.6.170.0070.04020.99
5.6.160.0030.04320.96
5.6.150.0130.03020.93
5.6.140.0000.04320.96
5.6.130.0000.04321.08
5.6.120.0000.04721.06
5.6.110.0070.04021.00
5.6.100.0100.04021.05
5.6.90.0100.03721.00
5.6.80.0070.03720.44
5.6.70.0070.03320.42
5.6.60.0030.04020.30
5.6.50.0000.04320.43
5.6.40.0030.04320.36
5.6.30.0000.04320.37
5.6.20.0030.04020.31
5.6.10.0030.04720.38
5.6.00.0070.03720.43
5.5.380.0100.06020.43
5.5.370.0130.07020.36
5.5.360.0130.05720.40
5.5.350.0100.04720.39
5.5.340.0100.07720.74
5.5.330.0100.03720.88
5.5.320.0100.04320.80
5.5.310.0000.04720.91
5.5.300.0000.05020.93
5.5.290.0070.03720.83
5.5.280.0030.03720.74
5.5.270.0070.04320.89
5.5.260.0070.04320.88
5.5.250.0170.02720.57
5.5.240.0070.03720.29
5.5.230.0070.03720.18
5.5.220.0100.03020.30
5.5.210.0030.04020.27
5.5.200.0070.06020.19
5.5.190.0070.03720.22
5.5.180.0100.02720.13
5.5.160.0070.04020.27
5.5.150.0070.03720.24
5.5.140.0030.04020.28
5.5.130.0070.04020.27
5.5.120.0000.04320.21
5.5.110.0030.03720.26
5.5.100.0070.03320.18
5.5.90.0100.03320.11
5.5.80.0170.02319.94
5.5.70.0030.03320.16
5.5.60.0030.04020.06
5.5.50.0070.04320.06
5.5.40.0000.08320.16
5.5.30.0070.05720.06
5.5.20.0130.07020.10
5.5.10.0100.04320.00
5.5.00.0100.07319.99
5.4.450.0030.04019.56
5.4.440.0030.04019.37
5.4.430.0100.03319.38
5.4.420.0030.03719.17
5.4.410.0030.04319.42
5.4.400.0070.03719.01
5.4.390.0000.04319.13
5.4.380.0130.03019.16
5.4.370.0070.03718.95
5.4.360.0100.03719.05
5.4.350.0030.04018.91
5.4.340.0030.03719.13
5.4.320.0030.04319.18
5.4.310.0030.04019.03
5.4.300.0070.03719.12
5.4.290.0100.03319.16
5.4.280.0000.03719.16
5.4.270.0000.04319.21
5.4.260.0000.03319.13
5.4.250.0070.03719.04
5.4.240.0030.03319.22
5.4.230.0030.06019.04
5.4.220.0030.03719.09
5.4.210.0100.07019.11
5.4.200.0070.07719.02
5.4.190.0070.03319.20
5.4.180.0130.06719.20
5.4.170.0030.05718.86
5.4.160.0130.07019.22
5.4.150.0070.07718.82
5.4.140.0130.06016.38
5.4.130.0030.07016.46
5.4.120.0030.07016.50
5.4.110.0130.06716.56
5.4.100.0070.07316.40
5.4.90.0070.05716.54
5.4.80.0130.03716.50
5.4.70.0000.08016.48
5.4.60.0100.07016.45
5.4.50.0100.06716.48
5.4.40.0130.04316.50
5.4.30.0170.04316.47
5.4.20.0070.07716.44
5.4.10.0070.07016.46
5.4.00.0030.03715.88
5.3.290.0070.03314.79
5.3.280.0130.03014.70
5.3.270.0030.07714.55
5.3.260.0070.05714.72
5.3.250.0070.07314.70
5.3.240.0070.07014.68
5.3.230.0070.06314.61
5.3.220.0030.08314.55
5.3.210.0030.08314.55
5.3.200.0070.04314.68
5.3.190.0100.07314.56
5.3.180.0000.08014.69
5.3.170.0030.08314.52
5.3.160.0130.06714.66
5.3.150.0070.06714.50
5.3.140.0070.07714.63
5.3.130.0100.06714.64
5.3.120.0030.07014.64
5.3.110.0170.05714.54
5.3.100.0170.05714.04
5.3.90.0030.07314.06
5.3.80.0000.04714.03
5.3.70.0030.07714.16
5.3.60.0100.03713.99
5.3.50.0130.05714.01
5.3.40.0170.06713.95
5.3.30.0170.05714.01
5.3.20.0100.07313.59
5.3.10.0100.06313.64
5.3.00.0030.05013.53
5.2.170.0000.06312.32
5.2.160.0000.07012.32
5.2.150.0100.03012.32
5.2.140.0070.05712.32
5.2.130.0070.03012.32
5.2.120.0070.04012.32
5.2.110.0000.03312.32
5.2.100.0070.06012.32
5.2.90.0030.03312.32
5.2.80.0070.06012.32
5.2.70.0100.05712.32
5.2.60.0030.06012.32
5.2.50.0000.05012.32
5.2.40.0030.06012.32
5.2.30.0000.04012.32
5.2.20.0070.03012.32
5.2.10.0070.06012.32
5.2.00.0100.03312.32
5.1.60.0030.03712.32
5.1.50.0100.05012.32
5.1.40.0100.04712.32
5.1.30.0070.05012.32
5.1.20.0170.03712.32
5.1.10.0030.04312.32
5.1.00.0070.05012.32
5.0.50.0000.03312.32
5.0.40.0100.04312.32
5.0.30.0070.05712.32
5.0.20.0100.02712.32
5.0.10.0000.02712.32
5.0.00.0000.06712.32
4.4.90.0000.03312.32
4.4.80.0000.04012.32
4.4.70.0000.02012.32
4.4.60.0070.01312.32
4.4.50.0000.02012.32
4.4.40.0000.05312.32
4.4.30.0000.03312.32
4.4.20.0030.03312.32
4.4.10.0030.02712.32
4.4.00.0030.02312.32
4.3.110.0030.03712.32
4.3.100.0030.03312.32
4.3.90.0000.03312.32
4.3.80.0030.04712.32
4.3.70.0030.03312.32
4.3.60.0000.04012.32
4.3.50.0030.02712.32
4.3.40.0000.03312.32
4.3.30.0100.03012.32
4.3.20.0000.03712.32
4.3.10.0000.04012.32
4.3.00.0030.03312.32

preferences:
43.43 ms | 401 KiB | 5 Q