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; } function make_call() { $this->bob(); } function ted() { echo ":: doesn't always mean static"; } public function make_call_static() { self::ted(); } } $x = new foo(); $x->jim(); $x->make_call(); $x->make_call_static(); 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.40.0130.00318.64
8.3.30.0110.00418.72
8.3.20.0040.00418.74
8.3.10.0060.00320.54
8.3.00.0060.00319.02
8.2.170.0110.00322.96
8.2.160.0060.00920.60
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0100.00020.27
8.2.110.0070.00319.30
8.2.100.0040.00817.82
8.2.90.0040.00419.27
8.2.80.0000.00919.25
8.2.70.0070.00317.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0090.00018.03
8.2.30.0040.00418.02
8.2.20.0060.00617.62
8.2.10.0000.00717.68
8.2.00.0040.00417.63
8.1.270.0030.00623.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00719.14
8.1.230.0100.00017.70
8.1.220.0060.00318.77
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00617.41
8.1.180.0050.00318.10
8.1.170.0030.00618.67
8.1.160.0030.00818.79
8.1.150.0030.00618.55
8.1.140.0030.00617.46
8.1.130.0000.00717.73
8.1.120.0040.00417.30
8.1.110.0040.00417.47
8.1.100.0000.00717.46
8.1.90.0040.00417.41
8.1.80.0040.00417.38
8.1.70.0030.00517.34
8.1.60.0020.00517.58
8.1.50.0000.00717.44
8.1.40.0040.00417.42
8.1.30.0060.00317.51
8.1.20.0000.00717.59
8.1.10.0040.00417.54
8.1.00.0040.00417.45
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0030.00318.36
8.0.270.0000.00716.88
8.0.260.0040.00416.69
8.0.250.0040.00416.79
8.0.240.0030.00516.87
8.0.230.0030.00316.88
8.0.220.0000.00716.84
8.0.210.0060.00316.91
8.0.200.0100.00016.96
8.0.190.0030.00316.87
8.0.180.0040.00416.90
8.0.170.0030.00616.72
8.0.160.0040.00416.87
8.0.150.0000.00816.88
8.0.140.0030.00716.79
8.0.130.0030.00313.36
8.0.120.0040.00416.82
8.0.110.0030.00316.75
8.0.100.0040.00416.95
8.0.90.0070.00016.75
8.0.80.0120.00316.88
8.0.70.0050.00316.77
8.0.60.0040.00416.79
8.0.50.0000.00716.64
8.0.30.0090.00916.96
8.0.20.0100.01217.03
8.0.10.0080.00016.98
8.0.00.0110.00816.59
7.4.330.0050.00013.00
7.4.320.0000.00616.53
7.4.300.0000.00816.55
7.4.290.0000.00716.49
7.4.280.0030.00716.59
7.4.270.0030.00316.52
7.4.260.0030.00313.30
7.4.250.0060.00316.41
7.4.240.0030.00316.43
7.4.230.0030.00316.57
7.4.220.0100.01416.63
7.4.210.0130.00316.55
7.4.200.0030.00516.71
7.4.190.0040.00416.64
7.4.160.0070.00716.41
7.4.150.0090.00916.54
7.4.140.0130.01016.46
7.4.130.0070.01016.59
7.4.120.0080.00916.49
7.4.110.0130.00716.66
7.4.100.0100.00616.48
7.4.90.0080.00916.52
7.4.80.0110.00519.39
7.4.70.0070.01716.57
7.4.60.0110.00816.55
7.4.50.0000.00916.33
7.4.40.0100.01016.27
7.4.30.0110.00516.51
7.4.00.0070.00714.58
7.3.330.0030.00313.29
7.3.320.0030.00313.23
7.3.310.0000.00716.30
7.3.300.0060.00016.30
7.3.290.0070.00816.27
7.3.280.0110.00616.24
7.3.270.0000.01916.28
7.3.260.0060.01616.29
7.3.250.0080.01116.41
7.3.240.0120.00316.59
7.3.230.0130.00616.49
7.3.210.0140.00316.28
7.3.200.0110.00716.15
7.3.190.0160.00416.48
7.3.180.0070.01016.27
7.3.170.0100.00616.36
7.3.160.0170.00416.29
7.3.120.0060.00914.88
7.2.330.0060.01316.70
7.2.320.0090.00916.52
7.2.310.0090.00916.66
7.2.300.0110.00716.51
7.2.290.0140.00316.41
7.2.60.0080.00816.68
7.2.00.0000.01419.41
7.1.200.0080.00415.49
7.1.100.0000.01517.96
7.1.70.0000.00717.00
7.1.60.0110.01419.30
7.1.50.0030.00716.51
7.1.00.0130.02322.32
7.0.200.0030.00616.50
7.0.140.0000.07322.09
7.0.120.0070.07322.09
7.0.60.0030.09320.04
7.0.50.0000.07017.88
7.0.40.0070.06020.21
7.0.30.0500.04720.06
7.0.20.0330.07320.26
7.0.10.0300.08020.12
7.0.00.0000.08720.09
5.6.280.0030.07321.02
5.6.210.0130.07720.72
5.6.200.0030.07318.12
5.6.190.0000.04720.55
5.6.180.0270.04720.30
5.6.170.0100.05320.55
5.6.160.0100.03720.48
5.6.150.0030.04018.27
5.6.140.0070.08018.16
5.6.130.0100.07718.18
5.6.120.0070.04321.05
5.6.110.0130.08021.00
5.6.100.0130.07721.01
5.6.90.0030.04321.00
5.6.80.0030.07320.53
5.6.70.0270.07720.38
5.5.350.0300.07320.34
5.5.340.0070.04317.97
5.5.330.0070.04020.31
5.5.320.0170.03320.41
5.5.310.0200.04320.34
5.5.300.0070.04717.98
5.5.290.0030.08318.03
5.5.280.0170.06720.74
5.5.270.0130.07720.65
5.5.260.0000.04720.66
5.5.250.0100.08320.59
5.5.240.0070.05320.16
5.4.450.0130.07319.15
5.4.440.0130.07319.40
5.4.430.0070.07719.47
5.4.420.0030.08319.30
5.4.410.0030.06719.35
5.4.400.0070.04319.25
5.4.390.0100.04719.24
5.4.380.0000.08019.12
5.4.370.0000.08019.14
5.4.360.0030.08018.92
5.4.350.0030.08019.18
5.4.340.0030.06018.86
5.4.320.0070.05319.10
5.4.310.0070.07719.08
5.4.300.0000.05019.24
5.4.290.0030.04019.07
5.4.280.0070.04719.08
5.4.270.0170.06319.23
5.4.260.0070.07318.85
5.4.250.0030.07018.99
5.4.240.0030.07718.95
5.4.230.0170.06318.84
5.4.220.0030.05019.24
5.4.210.0200.03318.86
5.4.200.0030.07019.20
5.4.190.0130.03719.14
5.4.180.0000.04319.13
5.4.170.0070.07319.20
5.4.160.0130.07319.14
5.4.150.0070.03718.92
5.4.140.0100.03716.42
5.4.130.0000.06316.26
5.4.120.0100.04016.38
5.4.110.0030.07716.34
5.4.100.0030.03716.42
5.4.90.0030.04016.46
5.4.80.0070.05016.45
5.4.70.0100.03016.44
5.4.60.0030.04016.36
5.4.50.0070.06316.46
5.4.40.0100.06016.47
5.4.30.0030.05016.38
5.4.20.0130.05016.36
5.4.10.0100.07016.36
5.4.00.0130.05315.95
5.3.290.0100.04714.73
5.3.280.0000.04714.67
5.3.270.0100.04714.54
5.3.260.0070.07714.68
5.3.250.0000.07714.62
5.3.240.0100.05014.61
5.3.230.0070.07314.61
5.3.220.0070.04314.73
5.3.210.0070.03714.49
5.3.200.0030.06314.62
5.3.190.0100.03714.58
5.3.180.0100.06714.73
5.3.170.0130.06714.60
5.3.160.0030.03714.49
5.3.150.0000.05014.62
5.3.140.0000.08014.71
5.3.130.0070.04314.47
5.3.120.0100.06014.46
5.3.110.0100.06714.63
5.3.100.0070.08314.09
5.3.90.0030.05314.04
5.3.80.0130.03714.08
5.3.70.0070.05714.17
5.3.60.0100.07314.16
5.3.50.0000.08013.93
5.3.40.0100.04013.85
5.3.30.0100.07013.98
5.3.20.0170.06013.59
5.3.10.0000.06313.82
5.3.00.0130.06313.56
5.2.170.0000.04311.15
5.2.160.0070.06011.32
5.2.150.0070.06011.16
5.2.140.0030.06311.33
5.2.130.0130.04711.12
5.2.120.0070.06311.09
5.2.110.0000.03711.26
5.2.100.0100.04011.16
5.2.90.0000.03011.07
5.2.80.0030.03011.03
5.2.70.0030.06310.99
5.2.60.0100.04010.97
5.2.50.0100.04711.10
5.2.40.0030.04011.05
5.2.30.0070.03011.07
5.2.20.0130.05011.02
5.2.10.0000.06310.84
5.2.00.0030.06310.88
5.1.60.0000.04310.14
5.1.50.0000.05310.07
5.1.40.0030.0579.94
5.1.30.0000.03710.49
5.1.20.0130.04310.25
5.1.10.0130.04710.25
5.1.00.0030.03010.04
5.0.50.0000.0278.62
5.0.40.0070.0408.57
5.0.30.0070.0308.24
5.0.20.0030.0308.16
5.0.10.0070.0338.26
5.0.00.0000.0338.16
4.4.90.0000.0407.88
4.4.80.0030.0337.88
4.4.70.0000.0407.88
4.4.60.0030.0207.88
4.4.50.0070.0237.88
4.4.40.0030.0477.88
4.4.30.0000.0437.88
4.4.20.0000.0277.88
4.4.10.0030.0307.88
4.4.00.0070.0477.88
4.3.110.0070.0207.88
4.3.100.0000.0307.88
4.3.90.0000.0177.88
4.3.80.0000.0307.88
4.3.70.0070.0307.88
4.3.60.0000.0277.88
4.3.50.0070.0137.88
4.3.40.0030.0277.88
4.3.30.0030.0177.88
4.3.20.0030.0137.88
4.3.10.0000.0277.88
4.3.00.0000.0377.88

preferences:
45.51 ms | 400 KiB | 5 Q