3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function __call($name, $args){ echo "__call " . $name . PHP_EOL; } public static function __callStatic($name, $args) { echo "__callStatic " . $name . PHP_EOL; } public function make_call_static() { self::ted(); } function make_call_static_non_self() { foo::ted(); } } $x = new foo(); $x->make_call_static(); $x->make_call_static_non_self(); foo::sam();

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.0150.00016.75
8.3.50.0220.00516.43
8.3.40.0120.00318.79
8.3.30.0070.01018.71
8.3.20.0040.00418.74
8.3.10.0080.00018.77
8.3.00.0080.00019.25
8.2.180.0070.01416.50
8.2.170.0120.00322.96
8.2.160.0170.00319.37
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00420.87
8.2.110.0000.00919.30
8.2.100.0110.00017.78
8.2.90.0030.00518.84
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0040.00417.92
8.2.50.0000.00818.10
8.2.40.0070.00018.03
8.2.30.0020.00517.91
8.2.20.0060.00317.53
8.2.10.0070.00017.73
8.2.00.0040.00417.68
8.1.280.0180.00325.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00723.92
8.1.230.0070.00417.76
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00717.25
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0000.00818.89
8.1.150.0040.00418.60
8.1.140.0040.00417.37
8.1.130.0000.00817.70
8.1.120.0050.00317.48
8.1.110.0000.00717.44
8.1.100.0030.00317.45
8.1.90.0040.00417.46
8.1.80.0000.00817.37
8.1.70.0000.00717.45
8.1.60.0030.00617.49
8.1.50.0050.00517.49
8.1.40.0030.00517.50
8.1.30.0030.00517.63
8.1.20.0040.00417.62
8.1.10.0000.00717.55
8.1.00.0050.00217.39
8.0.300.0050.00318.77
8.0.290.0050.00216.75
8.0.280.0030.00318.39
8.0.270.0030.00317.29
8.0.260.0060.00016.82
8.0.250.0000.00816.88
8.0.240.0080.00016.85
8.0.230.0030.00316.84
8.0.220.0000.00816.91
8.0.210.0050.00316.86
8.0.200.0000.00616.96
8.0.190.0000.00916.84
8.0.180.0070.00616.84
8.0.170.0040.00416.91
8.0.160.0040.00416.87
8.0.150.0040.00416.89
8.0.140.0090.00216.80
8.0.130.0030.00313.25
8.0.120.0000.00716.85
8.0.110.0050.00216.88
8.0.100.0050.00316.86
8.0.90.0050.00216.72
8.0.80.0040.01116.84
8.0.70.0000.00716.91
8.0.60.0000.00716.71
8.0.50.0040.00416.68
8.0.30.0180.00317.27
8.0.20.0130.00517.15
8.0.10.0000.00816.82
8.0.00.0100.00916.72
7.4.330.0000.00512.92
7.4.320.0000.00616.43
7.4.300.0000.00616.46
7.4.290.0030.00616.49
7.4.280.0040.00416.49
7.4.270.0030.00616.51
7.4.260.0000.00513.27
7.4.250.0030.00616.51
7.4.240.0030.00516.54
7.4.230.0070.00016.39
7.4.220.0030.01516.52
7.4.210.0100.00716.53
7.4.200.0070.00016.54
7.4.190.0000.00616.38
7.4.160.0140.00316.59
7.4.150.0070.01016.39
7.4.140.0080.01316.47
7.4.130.0100.00716.45
7.4.120.0090.00816.38
7.4.110.0080.00816.38
7.4.100.0110.00716.42
7.4.90.0090.00916.73
7.4.80.0130.00419.39
7.4.70.0030.01416.74
7.4.60.0090.00616.39
7.4.50.0070.00716.50
7.4.40.0090.00316.56
7.4.30.0090.00616.48
7.4.00.0090.00615.09
7.3.330.0050.00513.32
7.3.320.0030.00313.16
7.3.310.0000.00716.28
7.3.300.0030.00316.22
7.3.290.0100.00616.23
7.3.280.0090.00916.30
7.3.270.0070.01016.26
7.3.260.0100.00616.30
7.3.250.0140.00416.59
7.3.240.0120.00916.29
7.3.230.0110.00716.58
7.3.210.0100.00716.46
7.3.200.0140.00616.26
7.3.190.0100.01016.57
7.3.180.0130.00916.52
7.3.170.0090.00616.46
7.3.160.0130.00316.30
7.3.120.0040.00814.67
7.2.330.0130.00316.83
7.2.320.0100.01016.76
7.2.310.0130.00616.51
7.2.300.0100.00716.59
7.2.290.0100.01016.67
7.2.00.0110.01119.47
7.1.200.0090.00315.39
7.1.100.0000.00918.28
7.1.70.0060.00617.09
7.1.60.0090.00919.40
7.1.50.0040.01816.87
7.1.00.0000.05322.31
7.0.200.0270.00514.82
7.0.140.0030.07321.98
7.0.120.0070.07022.05
7.0.60.0100.06019.96
7.0.50.0030.08717.85
7.0.40.0070.07720.31
7.0.30.0230.04720.12
7.0.20.0230.06020.08
7.0.10.0070.05020.21
7.0.00.0030.04320.11
5.6.280.0070.07020.86
5.6.210.0070.09020.73
5.6.200.0100.07318.21
5.6.190.0030.07320.63
5.6.180.0370.07020.64
5.6.170.0230.08020.58
5.6.160.0130.07020.42
5.6.150.0100.04718.15
5.6.140.0130.07318.18
5.6.130.0100.08318.19
5.6.120.0130.07721.02
5.6.110.0030.07321.05
5.6.100.0100.06020.96
5.6.90.0070.08720.88
5.6.80.0070.08320.38
5.5.350.0000.03720.43
5.5.340.0170.07317.99
5.5.330.0030.07020.07
5.5.320.0300.06320.35
5.5.310.0370.05020.34
5.5.300.0070.04017.97
5.5.290.0030.06717.95
5.5.280.0100.08020.67
5.5.270.0200.07720.89
5.5.260.0030.08020.73
5.5.250.0170.07720.70
5.5.240.0230.08020.36
5.4.450.0030.08719.18
5.4.440.0070.08019.52
5.4.430.0100.07019.32
5.4.420.0000.05719.53
5.4.410.0130.06019.20
5.4.400.0100.07018.93
5.4.390.0000.05719.09
5.4.380.0000.05018.85
5.4.370.0100.05019.00
5.4.360.0070.03719.16
5.4.350.0000.04319.16
5.4.340.0000.05018.98
5.4.320.0100.03318.85
5.4.310.0100.07718.87
5.4.300.0070.08019.24
5.4.290.0070.04719.17
5.4.280.0130.07319.17
5.4.270.0070.06319.00
5.4.260.0070.07318.98
5.4.250.0000.06319.15
5.4.240.0070.03319.23
5.4.230.0130.04019.20
5.4.220.0000.04318.97
5.4.210.0130.03319.20
5.4.200.0070.03319.14
5.4.190.0000.04719.10
5.4.180.0030.03718.99
5.4.170.0070.03319.14
5.4.160.0030.04019.12
5.4.150.0000.04318.85
5.4.140.0030.03716.35
5.4.130.0070.03016.48
5.4.120.0070.03316.36
5.4.110.0030.03716.67
5.4.100.0070.03016.36
5.4.90.0000.03716.37
5.4.80.0070.03716.45
5.4.70.0070.03016.32
5.4.60.0070.04016.37
5.4.50.0000.04016.36
5.4.40.0030.03316.40
5.4.30.0070.03016.43
5.4.20.0100.04016.38
5.4.10.0000.03716.50
5.4.00.0070.03015.93
5.3.290.0070.07714.66
5.3.280.0070.03314.61
5.3.270.0000.04314.61
5.3.260.0000.04314.62
5.3.250.0000.04014.75
5.3.240.0030.04014.62
5.3.230.0000.04014.64
5.3.220.0000.04014.63
5.3.210.0100.03014.60
5.3.200.0030.03714.61
5.3.190.0100.03014.50
5.3.180.0000.03714.73
5.3.170.0000.03714.49
5.3.160.0000.04014.56
5.3.150.0070.03314.59
5.3.140.0000.03714.63
5.3.130.0000.04014.61
5.3.120.0000.04314.70
5.3.110.0030.03714.55
5.3.100.0030.03714.06
5.3.90.0030.03313.91
5.3.80.0000.03714.03
5.3.70.0030.03314.03
5.3.60.0030.03313.95
5.3.50.0000.03713.91
5.3.40.0000.04013.99
5.3.30.0130.05713.88
5.3.20.0000.04313.86
5.3.10.0030.06313.63
5.3.00.0030.03713.80
5.2.170.0030.02711.30
5.2.160.0000.03311.05
5.2.150.0000.03011.18
5.2.140.0070.04711.11
5.2.130.0000.04311.08
5.2.120.0000.03011.01
5.2.110.0000.03011.11
5.2.100.0070.02711.14
5.2.90.0070.03011.12
5.2.80.0030.06011.11
5.2.70.0100.05711.14
5.2.60.0030.04711.11
5.2.50.0070.05311.03
5.2.40.0070.05310.96
5.2.30.0070.06010.87
5.2.20.0030.06311.11
5.2.10.0070.05710.86
5.2.00.0070.05710.87
5.1.60.0070.04310.07
5.1.50.0030.05310.07
5.1.40.0030.0579.92
5.1.30.0070.05310.36
5.1.20.0030.04010.41
5.1.10.0100.03010.10
5.1.00.0000.05310.09
5.0.50.0070.0478.71
5.0.40.0030.0308.37
5.0.30.0030.0678.30
5.0.20.0070.0378.26
5.0.10.0070.0408.20
5.0.00.0030.0638.14
4.4.90.0030.0237.82
4.4.80.0000.0207.82
4.4.70.0000.0407.82
4.4.60.0000.0337.82
4.4.50.0030.0337.82
4.4.40.0000.0607.82
4.4.30.0000.0377.82
4.4.20.0070.0307.82
4.4.10.0000.0337.82
4.4.00.0000.0507.82
4.3.110.0070.0277.82
4.3.100.0000.0337.82
4.3.90.0070.0337.82
4.3.80.0000.0577.82
4.3.70.0000.0237.82
4.3.60.0030.0377.82
4.3.50.0000.0277.82
4.3.40.0000.0407.82
4.3.30.0000.0337.82
4.3.20.0030.0337.82
4.3.10.0030.0307.82
4.3.00.0030.0237.82

preferences:
40.28 ms | 400 KiB | 5 Q