3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassWithBothMagicCallMethods { public function __call($name, $args) { return "__call: " . $name; } public static function __callStatic($name, $args) { return "__callStatic: " . $name; } public function doSomething() { return static::magicCall(); } } class ClassWithCallStaticOnly { public static function __callStatic($name, $args) { return "__callStatic: " . $name; } public function doSomething() { return static::magicCall(); } } echo (new ClassWithCallStaticOnly())->doSomething() . PHP_EOL; echo (new ClassWithBothMagicCallMethods())->doSomething() . PHP_EOL;

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.120.0340.00917.50
8.4.110.0390.00817.49
8.4.100.0370.00817.56
8.4.90.0340.00817.50
8.4.80.0310.00817.44
8.4.70.0310.00717.60
8.4.60.0350.00817.39
8.4.50.0320.00817.54
8.4.40.0340.00717.31
8.4.30.0330.00717.35
8.4.20.0300.00617.33
8.4.10.0310.00617.47
8.3.250.0300.00616.52
8.3.240.0260.00516.46
8.3.230.0270.00616.47
8.3.220.0250.00716.44
8.3.210.0260.00716.45
8.3.200.0260.00616.44
8.3.190.0290.00616.45
8.3.180.0280.00616.43
8.3.170.0300.00716.36
8.3.160.0340.00716.40
8.3.150.0330.00716.39
8.3.140.0300.00716.41
8.3.130.0250.00516.40
8.3.120.0270.00616.41
8.3.110.0260.00516.39
8.3.100.0300.00716.40
8.3.90.0280.00716.41
8.3.80.0300.00516.42
8.3.70.0260.00616.46
8.3.60.0280.00716.42
8.3.50.0290.00616.46
8.3.40.0300.00617.45
8.3.30.0230.00617.35
8.3.20.0260.00617.35
8.3.10.0250.00517.37
8.3.00.0260.00617.35
8.2.290.0240.00616.47
8.2.280.0270.00616.44
8.2.270.0260.00616.44
8.2.260.0240.00516.37
8.2.250.0260.00716.48
8.2.240.0280.00716.34
8.2.230.0260.00716.37
8.2.220.0270.00616.32
8.2.210.0260.00616.29
8.2.200.0260.00616.43
8.2.190.0270.00816.34
8.2.180.0290.00616.36
8.2.170.0290.00617.59
8.2.160.0290.00617.50
8.2.150.0270.00617.41
8.2.140.0300.00617.32
8.2.130.0320.00717.32
8.2.120.0300.00617.42
8.2.110.0300.00717.45
8.2.100.0280.00617.41
8.2.90.0290.00617.44
8.2.80.0290.00617.38
8.2.70.0270.00617.33
8.2.60.0260.00617.33
8.2.50.0300.00617.31
8.2.40.0330.00717.34
8.2.30.0280.00717.33
8.2.20.0260.00717.30
8.2.10.0250.00617.30
8.2.00.0260.00617.36
8.1.330.0180.00615.93
8.1.320.0330.00716.03
8.1.310.0280.00716.11
8.1.300.0340.00716.02
8.1.290.0350.00616.04
8.1.280.0320.00815.91
8.1.270.0300.00917.27
8.1.260.0370.00417.26
8.1.250.0320.00717.25
8.1.240.0280.01017.36
8.1.230.0310.00717.38
8.1.220.0300.00917.01
8.1.210.0350.00816.98
8.1.200.0230.00717.03
8.1.190.0250.00717.01
8.1.180.0190.00517.11
8.1.170.0130.00717.23
8.1.160.0200.00317.09
8.1.150.0110.00717.30
8.1.140.0150.00417.29
8.1.130.0130.00517.20
8.1.120.0150.00217.44
8.1.110.0150.00217.28
8.1.100.0170.00217.21
8.1.90.0150.00217.22
8.1.80.0130.00417.18
8.1.70.0190.00817.04
8.1.60.0400.00917.38
8.1.50.0330.00517.30
8.1.40.0280.00917.39
8.1.30.0280.00917.47
8.1.20.0170.00717.41
8.1.10.0170.00517.24
8.1.00.0260.00717.36
8.0.300.0320.00616.59
8.0.290.0350.00916.40
8.0.280.0300.00816.49
8.0.270.0310.01016.63
8.0.260.0200.00316.48
8.0.250.0140.00316.51
8.0.240.0320.00416.63
8.0.230.0280.01016.67
8.0.220.0310.00916.46
8.0.210.0280.00816.55
8.0.200.0370.00316.57
8.0.190.0370.00816.51
8.0.180.0390.00516.55
8.0.170.0350.00816.17
8.0.160.0310.00916.77
8.0.150.0370.00616.25
8.0.140.0320.00716.63
8.0.130.0360.00516.50
8.0.120.0350.00716.64
8.0.110.0310.00816.50
8.0.100.0280.01016.49
8.0.90.0330.00616.39
8.0.80.0400.00916.31
8.0.70.0350.00516.41
8.0.60.0300.00716.33
8.0.50.0310.00816.33
8.0.30.0310.00716.54
8.0.20.0320.00616.33
8.0.10.0290.00816.59
8.0.00.0220.00516.64
7.4.330.0310.00416.09
7.4.320.0260.00816.07
7.4.300.0290.00616.29
7.4.290.0260.00916.18
7.4.280.0150.00616.31
7.4.270.0100.00616.34
7.4.260.0250.00516.41
7.4.250.0270.00516.28
7.4.240.0320.00616.20
7.4.230.0320.00415.92
7.4.220.0250.01016.32
7.4.210.0290.00416.28
7.4.200.0320.00816.11
7.4.190.0280.00716.16
7.4.180.0340.00916.02
7.4.160.0260.01116.39
7.4.150.0140.00516.21
7.4.140.0100.00616.34
7.4.130.0140.00516.29
7.4.120.0260.00816.29
7.4.110.0230.00416.22
7.4.100.0160.00816.22
7.4.90.0160.00716.24
7.4.80.0120.00516.24
7.4.70.0220.00916.15
7.4.60.0400.00516.08
7.4.50.0230.00816.22
7.4.40.0280.00815.88
7.4.30.0310.00416.07
7.4.20.0290.00716.21
7.4.10.0280.00716.04
7.4.00.0290.00416.35
7.3.330.0180.00216.09
7.3.320.0280.00516.14
7.3.310.0300.00416.11
7.3.300.0270.00815.89
7.3.290.0250.01016.20
7.3.280.0280.00715.93
7.3.270.0250.00816.27
7.3.260.0270.01115.84
7.3.250.0130.00416.11
7.3.240.0110.00416.06
7.3.230.0300.00916.26
7.3.220.0300.00616.06
7.3.210.0270.00616.20
7.3.200.0270.00916.01
7.3.190.0320.00915.95
7.3.180.0310.00515.88
7.3.170.0340.00416.13
7.3.160.0300.00716.09
7.3.150.0310.00416.28
7.3.140.0260.00616.13
7.3.130.0110.00516.19
7.3.120.0140.00216.02
7.3.110.0150.00115.72
7.3.100.0170.00315.88
7.3.90.0130.00316.45
7.3.80.0140.00216.04
7.3.70.0270.00616.14
7.3.60.0390.00615.99
7.3.50.0270.00716.52
7.3.40.0300.00516.02
7.3.30.0330.00315.92
7.3.20.0280.00818.06
7.3.10.0260.00718.10
7.3.00.0310.00317.71
7.2.340.0230.01116.13
7.2.330.0260.00816.15
7.2.320.0260.01015.92
7.2.310.0300.00515.94
7.2.300.0230.01216.16
7.2.290.0280.01216.06
7.2.280.0310.00916.13
7.2.270.0200.00516.14
7.2.260.0320.00416.02
7.2.250.0220.00416.15
7.2.240.0260.00816.05
7.2.230.0270.00716.14
7.2.220.0350.00416.16
7.2.210.0260.00715.92
7.2.200.0280.01016.42
7.2.190.0230.00816.23
7.2.180.0120.00316.45
7.2.170.0260.00715.93
7.2.160.0270.00616.04
7.2.150.0300.00818.08
7.2.140.0290.00618.07
7.2.130.0210.00318.40
7.2.120.0160.00618.06
7.2.110.0230.00618.15
7.2.100.0300.00518.26
7.2.90.0310.00718.21
7.2.80.0270.00418.07
7.2.70.0250.01018.13
7.2.60.0270.00818.09
7.2.50.0280.00818.28
7.2.40.0230.00618.16
7.2.30.0260.01017.96
7.2.20.0290.00618.41
7.2.10.0310.00918.10
7.2.00.0200.00318.41
7.1.330.0170.00517.04
7.1.320.0250.00616.85
7.1.310.0260.00716.85
7.1.300.0310.00516.82
7.1.290.0240.00717.09
7.1.280.0230.00617.08
7.1.270.0210.00816.96
7.1.260.0320.00717.04
7.1.250.0150.00517.03
7.1.240.0140.00117.08
7.1.230.0100.00517.12
7.1.220.0250.00716.99
7.1.210.0230.00416.89
7.1.200.0250.01017.02
7.1.190.0110.00517.02
7.1.180.0280.00916.82
7.1.170.0270.00516.94
7.1.160.0300.00716.83
7.1.150.0290.00516.91
7.1.140.0250.00417.04
7.1.130.0300.00516.66
7.1.120.0280.00416.80
7.1.110.0240.00816.86
7.1.100.0220.00917.00
7.1.90.0260.00617.00
7.1.80.0230.01017.12
7.1.70.0290.00516.80
7.1.60.0290.00417.00
7.1.50.0240.00817.05
7.1.40.0290.00416.95
7.1.30.0240.00917.09
7.1.20.0250.00917.29
7.1.10.0280.00616.96
7.1.00.0230.00417.05
7.0.330.0220.00817.03
7.0.320.0270.00616.59
7.0.310.0230.00816.60
7.0.300.0270.00416.43
7.0.290.0270.00616.50
7.0.280.0220.00816.91
7.0.270.0250.00516.64
7.0.260.0290.00616.74
7.0.250.0240.00416.91
7.0.240.0220.00316.59
7.0.230.0230.00716.77
7.0.220.0240.00816.97
7.0.210.0240.00416.93
7.0.200.0210.00916.53
7.0.190.0250.00616.78
7.0.180.0240.00716.57
7.0.170.0270.00417.01
7.0.160.0240.00916.73
7.0.150.0290.00316.66
7.0.140.0270.00516.63
7.0.130.0110.00416.78
7.0.120.0270.01017.06
7.0.110.0210.00716.63
7.0.100.0250.00316.86
7.0.90.0240.00716.84
7.0.80.0240.00216.98
7.0.70.0100.00616.57
7.0.60.0230.00816.86
7.0.50.0210.00316.76
7.0.40.0110.00216.76
7.0.30.0120.00316.74
7.0.20.0120.00316.82
7.0.10.0200.00616.75
7.0.00.0170.00916.90
5.6.400.0230.00815.59
5.6.390.0220.00815.45
5.6.380.0340.00715.53
5.6.370.0160.00515.68
5.6.360.0250.01015.91
5.6.350.0280.00415.26
5.6.340.0240.00915.40
5.6.330.0180.00615.47
5.6.320.0210.00815.77
5.6.310.0260.00415.65
5.6.300.0270.00515.70
5.6.290.0240.00715.56
5.6.280.0260.00515.64
5.6.270.0280.00415.32
5.6.260.0270.00815.36
5.6.250.0140.00215.51
5.6.240.0160.00415.66
5.6.230.0110.00315.63
5.6.220.0250.00715.17
5.6.210.0220.00915.67
5.6.200.0280.00315.57
5.6.190.0230.00915.43
5.6.180.0240.00815.41
5.6.170.0270.00515.58
5.6.160.0300.00215.51
5.6.150.0250.00715.48
5.6.140.0270.00515.53
5.6.130.0260.00915.52
5.6.120.0250.00915.33
5.6.110.0310.00615.42
5.6.100.0280.00415.46
5.6.90.0330.00915.38
5.6.80.0180.00915.43
5.6.70.0270.00415.95
5.6.60.0210.01015.54
5.6.50.0270.00315.62
5.6.40.0260.00415.86
5.6.30.0240.00615.47
5.6.20.0230.00815.44
5.6.10.0250.00715.54
5.6.00.0130.00515.59
5.5.380.0190.00115.72
5.5.370.0120.00315.69
5.5.360.0220.00715.52
5.5.350.0230.00615.38
5.5.340.0380.00515.66
5.5.330.0210.00915.21
5.5.320.0220.00415.55
5.5.310.0260.00415.19
5.5.300.0250.00515.64
5.5.290.0230.00815.55
5.5.280.0260.00615.57
5.5.270.0260.00415.80
5.5.260.0250.00815.34
5.5.250.0280.00415.68
5.5.240.0270.00615.75
5.5.230.0240.00615.61
5.5.220.0250.00615.62
5.5.210.0270.00415.60
5.5.200.0250.00615.37
5.5.190.0250.00615.61
5.5.180.0260.00515.50
5.5.170.0240.00615.63
5.5.160.0220.00415.55
5.5.150.0210.01015.63
5.5.140.0210.00715.61
5.5.130.0240.00615.34
5.5.120.0260.00515.36
5.5.110.0250.00715.60
5.5.100.0210.00515.56
5.5.90.0120.00215.55
5.5.80.0200.01015.41
5.5.70.0290.00315.82
5.5.60.0260.00715.80
5.5.50.0220.00615.46
5.5.40.0290.00215.56
5.5.30.0240.00515.54
5.5.20.0190.00715.56
5.5.10.0240.00615.39
5.5.00.0230.00215.61
5.4.450.0110.00414.19
5.4.440.0100.00314.19
5.4.430.0090.00214.19
5.4.420.0120.00214.19
5.4.410.0070.00414.19
5.4.400.0090.00214.19
5.4.390.0110.00114.19
5.4.380.0110.00114.19
5.4.370.0100.00214.19
5.4.360.0120.00314.19
5.4.350.0110.00414.19
5.4.340.0180.00614.19
5.4.330.0170.00714.19
5.4.320.0200.00414.19
5.4.310.0170.00514.19
5.4.300.0110.00314.19
5.4.290.0210.00314.19
5.4.280.0200.00414.19
5.4.270.0220.00414.19
5.4.260.0200.00514.19
5.4.250.0160.00714.19
5.4.240.0200.00314.19
5.4.230.0200.00414.19
5.4.220.0190.00314.19
5.4.210.0180.00714.19
5.4.200.0170.00814.19
5.4.190.0230.00214.19
5.4.180.0170.00414.19
5.4.170.0200.00614.19
5.4.160.0210.00514.19
5.4.150.0140.00514.19
5.4.140.0150.00514.19
5.4.130.0190.00514.19
5.4.120.0180.00614.19
5.4.110.0200.00514.19
5.4.100.0190.00414.19
5.4.90.0140.00614.19
5.4.80.0170.00814.19
5.4.70.0210.00614.19
5.4.60.0220.00514.19
5.4.50.0190.00514.19
5.4.40.0240.00614.19
5.4.30.0240.00314.19
5.4.20.0230.00114.19
5.4.10.0190.00514.19
5.4.00.0120.00714.19
5.3.290.0070.00414.19
5.3.280.0080.00314.19
5.3.270.0070.00414.19
5.3.260.0120.00414.19
5.3.250.0230.00314.19
5.3.240.0160.00914.19
5.3.230.0210.00614.19
5.3.220.0210.00514.19
5.3.210.0180.00514.19
5.3.200.0180.00614.19
5.3.190.0140.00514.19
5.3.180.0070.00414.19
5.3.170.0100.00114.19
5.3.160.0070.00414.19
5.3.150.0230.00514.19
5.3.140.0200.00514.19
5.3.130.0170.00414.19
5.3.120.0140.00414.19
5.3.110.0190.00614.19
5.3.100.0170.00614.19
5.3.90.0160.00814.19
5.3.80.0180.00614.19
5.3.70.0200.00414.19
5.3.60.0160.00714.19
5.3.50.0200.00414.19
5.3.40.0190.00714.19
5.3.30.0180.00614.19
5.3.20.0200.00414.19
5.3.10.0180.00614.19
5.3.00.0180.00514.19
5.2.170.0170.00714.19
5.2.160.0160.00514.19
5.2.150.0130.00714.19
5.2.140.0130.00614.19
5.2.130.0110.00814.19
5.2.120.0110.00814.19
5.2.110.0130.00614.19
5.2.100.0160.00314.19
5.2.90.0150.00514.19
5.2.80.0160.00414.19
5.2.70.0140.00614.19
5.2.60.0170.00314.19
5.2.50.0180.00314.19
5.2.40.0110.00614.19
5.2.30.0070.00214.19
5.2.20.0060.00214.19
5.2.10.0060.00214.19
5.2.00.0070.00114.19
5.1.60.0060.00114.19
5.1.50.0050.00214.19
5.1.40.0060.00214.19
5.1.30.0160.00514.19
5.1.20.0170.00714.19
5.1.10.0140.00214.19
5.1.00.0060.00214.19
5.0.50.0060.00114.19
5.0.40.0090.00514.19
5.0.30.0090.00414.19
5.0.20.0120.00114.19
5.0.10.0090.00214.19
5.0.00.0080.00514.19
4.4.90.0080.00014.19
4.4.80.0080.00114.19
4.4.70.0090.00014.19
4.4.60.0070.00214.19
4.4.50.0070.00214.19
4.4.40.0040.00414.19
4.4.30.0090.00014.19
4.4.20.0070.00214.19
4.4.10.0090.00014.19
4.4.00.0080.00114.19
4.3.110.0090.00014.19
4.3.100.0080.00114.19
4.3.90.0070.00114.19
4.3.80.0070.00214.19
4.3.70.0070.00214.19
4.3.60.0060.00214.19
4.3.50.0070.00214.19
4.3.40.0080.00114.19
4.3.30.0050.00214.19
4.3.20.0060.00114.19
4.3.10.0050.00214.19
4.3.00.0060.00114.19

preferences:
30.74 ms | 403 KiB | 5 Q