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 make_call_static() { foo::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.60.0100.00716.48
8.3.50.0240.00817.25
8.3.40.0130.00918.39
8.3.30.0040.01118.59
8.3.20.0080.00018.52
8.3.10.0040.00420.40
8.3.00.0100.00017.63
8.2.180.0110.00718.54
8.2.170.0140.00722.96
8.2.160.0120.00620.60
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00419.22
8.2.110.0090.00019.26
8.2.100.0090.00317.72
8.2.90.0040.00419.19
8.2.80.0090.00019.40
8.2.70.0060.00317.63
8.2.60.0000.00818.03
8.2.50.0050.00318.07
8.2.40.0030.00518.22
8.2.30.0040.00417.95
8.2.20.0080.00017.58
8.2.10.0040.00417.56
8.2.00.0040.00417.67
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00722.55
8.1.230.0070.00420.85
8.1.220.0080.00018.77
8.1.210.0080.00019.01
8.1.200.0000.01017.23
8.1.190.0040.00417.40
8.1.180.0000.00818.10
8.1.170.0040.00418.82
8.1.160.0000.00718.75
8.1.150.0050.00318.68
8.1.140.0040.00417.39
8.1.130.0030.00517.68
8.1.120.0050.00317.45
8.1.110.0040.00417.34
8.1.100.0030.00317.33
8.1.90.0050.00517.44
8.1.80.0050.00217.42
8.1.70.0030.00317.44
8.1.60.0000.00717.59
8.1.50.0040.00417.48
8.1.40.0040.00417.53
8.1.30.0000.00817.65
8.1.20.0030.00617.55
8.1.10.0040.00417.59
8.1.00.0060.00317.38
8.0.300.0030.00619.87
8.0.290.0000.00816.59
8.0.280.0000.00718.34
8.0.270.0050.00217.20
8.0.260.0030.00316.86
8.0.250.0040.00416.85
8.0.240.0040.00416.97
8.0.230.0070.00016.95
8.0.220.0030.00516.77
8.0.210.0000.00716.76
8.0.200.0030.00317.01
8.0.190.0000.00816.95
8.0.180.0040.00416.82
8.0.170.0030.00516.79
8.0.160.0040.00316.88
8.0.150.0080.00016.87
8.0.140.0000.00816.77
8.0.130.0000.00513.40
8.0.120.0000.00816.74
8.0.110.0040.00416.85
8.0.100.0080.00016.75
8.0.90.0030.00516.98
8.0.80.0060.01116.82
8.0.70.0030.00616.76
8.0.60.0030.00316.64
8.0.50.0050.00216.75
8.0.30.0090.00917.21
8.0.20.0170.01617.03
8.0.10.0000.00716.74
8.0.00.0100.00916.72
7.4.330.0030.00312.99
7.4.320.0030.00316.42
7.4.300.0070.00016.50
7.4.290.0060.00016.52
7.4.280.0030.00416.63
7.4.270.0030.00316.50
7.4.260.0050.00013.38
7.4.250.0080.00016.53
7.4.240.0030.00316.61
7.4.230.0040.00416.69
7.4.220.0060.01016.69
7.4.210.0100.00716.50
7.4.200.0000.00716.52
7.4.190.0000.00716.68
7.4.160.0070.01316.37
7.4.150.0240.01716.65
7.4.140.0100.01016.49
7.4.130.0080.01116.50
7.4.120.0070.00916.48
7.4.110.0060.01316.64
7.4.100.0110.00616.66
7.4.90.0070.01016.29
7.4.80.0170.00619.39
7.4.70.0090.00616.68
7.4.60.0070.01016.38
7.4.50.0040.00916.42
7.4.40.0000.01916.57
7.4.30.0060.01216.46
7.4.00.0090.00614.67
7.3.330.0030.00313.28
7.3.320.0030.00313.07
7.3.310.0020.00516.30
7.3.300.0040.00416.29
7.3.290.0120.00316.26
7.3.280.0090.00816.28
7.3.270.0090.00916.32
7.3.260.0120.00916.56
7.3.250.0100.00716.42
7.3.240.0090.01416.40
7.3.230.0120.00416.26
7.3.210.0130.00316.25
7.3.200.0050.01116.20
7.3.190.0100.00716.25
7.3.180.0170.00516.55
7.3.170.0120.00416.43
7.3.160.0090.00616.31
7.3.120.0080.00714.87
7.2.330.0140.00516.50
7.2.320.0070.01816.79
7.2.310.0060.01616.45
7.2.300.0230.00016.70
7.2.290.0070.01016.73
7.2.60.0030.01016.67
7.2.00.0000.01619.62
7.1.200.0060.00615.65
7.1.100.0040.01118.05
7.1.70.0000.01016.75
7.1.60.0110.01419.40
7.1.50.0060.01516.98
7.1.00.0030.07022.54
7.0.200.0070.00016.71
7.0.140.0030.07322.09
7.0.120.0070.04322.05
7.0.60.0070.05719.94
7.0.50.0070.04717.88
7.0.40.0100.07320.05
7.0.30.0270.04720.30
7.0.20.0330.07720.05
7.0.10.0330.06320.30
7.0.00.0130.07020.27
5.6.280.0070.06721.13
5.6.210.0070.08020.47
5.6.200.0070.04018.12
5.6.190.0070.07020.48
5.6.180.0270.05020.49
5.6.170.0270.04320.55
5.6.160.0030.07720.45
5.6.150.0100.03318.15
5.6.140.0070.08318.14
5.6.130.0030.04018.27
5.6.120.0230.06721.01
5.6.110.0200.08020.98
5.6.100.0070.04721.12
5.6.90.0070.05321.09
5.6.80.0200.07020.39
5.6.70.0130.09320.40
5.5.350.0230.03020.34
5.5.340.0030.04017.99
5.5.330.0030.09020.37
5.5.320.0300.08020.21
5.5.310.0300.07320.26
5.5.300.0070.08317.95
5.5.290.0030.07018.01
5.5.280.0030.06020.91
5.5.270.0030.08720.77
5.5.260.0270.06020.77
5.5.250.0100.06320.75
5.5.240.0070.04720.29
5.4.450.0130.04019.58
5.4.440.0030.08719.18
5.4.430.0030.07019.17
5.4.420.0070.04719.18
5.4.410.0070.07719.20
5.4.400.0170.06719.15
5.4.390.0030.07318.97
5.4.380.0130.07018.86
5.4.370.0100.07019.25
5.4.360.0130.07318.86
5.4.350.0000.04719.08
5.4.340.0130.04719.12
5.4.320.0070.06319.07
5.4.310.0030.07719.14
5.4.300.0100.07718.97
5.4.290.0030.04719.20
5.4.280.0030.08018.84
5.4.270.0030.08018.92
5.4.260.0030.07318.85
5.4.250.0100.07319.14
5.4.240.0100.05319.24
5.4.230.0070.07019.24
5.4.220.0070.04719.14
5.4.210.0100.05319.15
5.4.200.0100.07719.23
5.4.190.0030.07719.14
5.4.180.0030.08319.22
5.4.170.0070.07019.07
5.4.160.0130.03718.83
5.4.150.0100.07019.13
5.4.140.0030.06716.35
5.4.130.0030.06016.42
5.4.120.0100.04716.45
5.4.110.0030.03716.41
5.4.100.0100.07016.34
5.4.90.0030.04716.34
5.4.80.0070.03316.36
5.4.70.0070.03316.64
5.4.60.0070.04016.51
5.4.50.0100.07016.36
5.4.40.0070.04016.47
5.4.30.0100.06716.36
5.4.20.0100.05716.40
5.4.10.0000.04316.69
5.4.00.0070.05715.77
5.3.290.0130.05714.59
5.3.280.0030.08014.62
5.3.270.0070.03714.62
5.3.260.0030.08314.60
5.3.250.0000.05014.75
5.3.240.0070.08014.61
5.3.230.0070.05314.61
5.3.220.0100.07314.71
5.3.210.0030.05314.61
5.3.200.0070.03314.57
5.3.190.0000.04314.57
5.3.180.0100.03014.48
5.3.170.0070.07314.56
5.3.160.0070.04014.56
5.3.150.0030.04014.55
5.3.140.0030.04714.61
5.3.130.0000.05014.55
5.3.120.0000.05314.56
5.3.110.0030.04314.58
5.3.100.0100.06714.09
5.3.90.0130.03014.04
5.3.80.0130.06714.07
5.3.70.0070.03713.99
5.3.60.0030.07714.07
5.3.50.0100.06014.02
5.3.40.0030.08013.92
5.3.30.0100.05313.93
5.3.20.0030.07713.84
5.3.10.0070.06313.80
5.3.00.0000.07013.70
5.2.170.0070.05011.19
5.2.160.0130.04311.17
5.2.150.0030.03711.30
5.2.140.0070.03311.14
5.2.130.0030.05011.08
5.2.120.0100.02311.26
5.2.110.0070.05011.16
5.2.100.0070.03011.03
5.2.90.0030.03011.06
5.2.80.0030.05011.16
5.2.70.0000.04011.17
5.2.60.0070.03011.07
5.2.50.0070.03311.20
5.2.40.0170.02010.92
5.2.30.0070.06311.13
5.2.20.0000.04311.03
5.2.10.0000.03710.82
5.2.00.0100.04710.79
5.1.60.0000.03310.02
5.1.50.0070.0339.91
5.1.40.0100.0339.95
5.1.30.0030.03310.34
5.1.20.0030.02710.52
5.1.10.0030.04010.09
5.1.00.0000.06010.08
5.0.50.0070.0378.62
5.0.40.0030.0308.46
5.0.30.0000.0638.38
5.0.20.0000.0278.22
5.0.10.0070.0408.24
5.0.00.0070.0538.22
4.4.90.0100.0278.22
4.4.80.0000.0338.22
4.4.70.0000.0208.22
4.4.60.0000.0308.22
4.4.50.0100.0138.22
4.4.40.0070.0508.22
4.4.30.0070.0208.22
4.4.20.0000.0178.22
4.4.10.0000.0378.22
4.4.00.0000.0578.22
4.3.110.0030.0338.22
4.3.100.0000.0378.22
4.3.90.0070.0338.22
4.3.80.0070.0378.22
4.3.70.0130.0238.22
4.3.60.0030.0308.22
4.3.50.0000.0238.22
4.3.40.0000.0378.22
4.3.30.0000.0208.22
4.3.20.0030.0378.22
4.3.10.0030.0178.22
4.3.00.0000.0408.22

preferences:
49.4 ms | 401 KiB | 5 Q