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_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.0140.00016.13
8.3.50.0090.00621.99
8.3.40.0070.00718.84
8.3.30.0100.01019.09
8.3.20.0080.00020.16
8.3.10.0080.00023.65
8.3.00.0100.00019.26
8.2.180.0040.01118.16
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0130.00326.16
8.2.120.0000.00722.25
8.2.110.0030.00621.03
8.2.100.0000.01217.72
8.2.90.0040.00419.21
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0000.00818.05
8.2.50.0080.00018.10
8.2.40.0030.00318.16
8.2.30.0000.00718.04
8.2.20.0000.00717.79
8.2.10.0000.00817.55
8.2.00.0040.00417.74
8.1.280.0130.01025.92
8.1.270.0090.00623.92
8.1.260.0080.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00322.73
8.1.230.0070.00417.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0050.00318.64
8.1.160.0030.00622.05
8.1.150.0050.00318.70
8.1.140.0080.00017.49
8.1.130.0000.00617.81
8.1.120.0040.00417.50
8.1.110.0050.00317.43
8.1.100.0000.00717.48
8.1.90.0000.00717.48
8.1.80.0050.00317.35
8.1.70.0030.00317.32
8.1.60.0050.00317.58
8.1.50.0000.00717.57
8.1.40.0070.00017.41
8.1.30.0000.00817.65
8.1.20.0040.00417.68
8.1.10.0050.00317.55
8.1.00.0000.00817.46
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00818.45
8.0.270.0030.00317.18
8.0.260.0030.00316.82
8.0.250.0030.00317.00
8.0.240.0050.00216.98
8.0.230.0030.00316.91
8.0.220.0030.00316.94
8.0.210.0040.00416.77
8.0.200.0040.00416.90
8.0.190.0040.00416.98
8.0.180.0000.00816.77
8.0.170.0040.00416.97
8.0.160.0030.00316.77
8.0.150.0070.00016.93
8.0.140.0000.00716.91
8.0.130.0050.00313.38
8.0.120.0050.00316.80
8.0.110.0030.00416.87
8.0.100.0000.00716.93
8.0.90.0000.00716.74
8.0.80.0060.00916.93
8.0.70.0070.00016.89
8.0.60.0030.00516.77
8.0.50.0000.00716.94
8.0.30.0050.01516.91
8.0.20.0080.01117.40
8.0.10.0040.00416.97
8.0.00.0080.01116.62
7.4.330.0060.00015.03
7.4.320.0030.00316.56
7.4.300.0070.00016.51
7.4.290.0030.00616.59
7.4.280.0000.00716.50
7.4.270.0030.00316.46
7.4.260.0030.00316.61
7.4.250.0000.00716.54
7.4.240.0040.00316.59
7.4.230.0080.00016.39
7.4.220.0120.01216.55
7.4.210.0040.01016.66
7.4.200.0030.00316.39
7.4.190.0030.00316.64
7.4.160.0070.01016.46
7.4.150.0100.01017.40
7.4.140.0070.01017.86
7.4.130.0090.00816.51
7.4.120.0120.00616.45
7.4.110.0060.01116.39
7.4.100.0090.00916.70
7.4.90.0070.01016.52
7.4.80.0090.00919.39
7.4.70.0160.00016.43
7.4.60.0080.00816.38
7.4.50.0040.00416.49
7.4.40.0080.00522.77
7.4.30.0120.00316.49
7.4.00.0070.01014.73
7.3.330.0050.00013.25
7.3.320.0000.00713.29
7.3.310.0030.00316.28
7.3.300.0070.00016.25
7.3.290.0100.01016.27
7.3.280.0090.00816.26
7.3.270.0080.00917.40
7.3.260.0110.01516.58
7.3.250.0120.00816.43
7.3.240.0060.01216.34
7.3.230.0100.01016.39
7.3.210.0030.01416.23
7.3.200.0030.01719.39
7.3.190.0070.01016.54
7.3.180.0100.00716.34
7.3.170.0040.01216.60
7.3.160.0090.01216.58
7.3.120.0140.00314.86
7.3.10.0160.00416.39
7.3.00.0180.00716.50
7.2.330.0070.01016.42
7.2.320.0070.01016.65
7.2.310.0140.00616.73
7.2.300.0120.00416.38
7.2.290.0160.00016.66
7.2.130.0140.00716.80
7.2.120.0080.01216.75
7.2.110.0120.00916.38
7.2.100.0180.00616.33
7.2.90.0110.00716.38
7.2.80.0040.01116.70
7.2.70.0090.00616.89
7.2.60.0150.00616.42
7.2.50.0090.01016.85
7.2.40.0060.00916.76
7.2.30.0100.01016.50
7.2.20.0090.00616.69
7.2.10.0140.00316.39
7.2.00.0160.00416.87
7.1.250.0140.00515.07
7.1.70.0020.00517.07
7.1.60.0090.01519.31
7.1.50.0060.01616.94
7.1.00.0030.07722.37
7.0.200.0260.00016.32
7.0.140.0070.07022.10
7.0.100.0070.03720.18
7.0.90.0030.04320.04
7.0.80.0030.07719.90
7.0.70.0130.05719.96
7.0.60.0170.06319.97
7.0.50.0070.07720.36
7.0.40.0100.04320.09
7.0.30.0000.05320.18
7.0.20.0070.04719.96
7.0.10.0170.05719.95
7.0.00.0000.05320.02
5.6.280.0100.06720.82
5.6.250.0070.05720.72
5.6.240.0000.08720.67
5.6.230.0030.04320.67
5.6.220.0070.04320.68
5.6.210.0030.04320.47
5.6.200.0000.04020.93
5.6.190.0030.04021.07
5.6.180.0070.05020.97
5.6.170.0100.06721.11
5.6.160.0000.06321.12
5.6.150.0100.03721.14
5.6.140.0100.06020.96
5.6.130.0130.06021.04
5.6.120.0030.04021.06
5.6.110.0100.03721.06
5.6.100.0030.05021.04
5.6.90.0100.08321.00
5.6.80.0030.08020.35
5.6.70.0070.07320.50
5.6.60.0070.05720.43
5.6.50.0070.05020.45
5.6.40.0100.05320.38
5.6.30.0030.05320.40
5.6.20.0070.06720.48
5.6.10.0070.04720.53
5.6.00.0030.08020.30
5.5.380.0070.07320.32
5.5.370.0030.08720.43
5.5.360.0030.08320.35
5.5.350.0070.05320.41
5.5.340.0000.04320.84
5.5.330.0070.07720.64
5.5.320.0000.06320.87
5.5.310.0130.04020.92
5.5.300.0070.06320.83
5.5.290.0130.02720.78
5.5.280.0070.04020.91
5.5.270.0070.07320.80
5.5.260.0100.07720.64
5.5.250.0000.05020.72
5.5.240.0070.04020.19
5.5.230.0070.05020.29
5.5.220.0070.03720.13
5.5.210.0030.07020.14
5.5.200.0100.03020.19
5.5.190.0030.07320.23
5.5.180.0170.07319.96
5.5.160.0030.04320.00
5.5.150.0070.06020.23
5.5.140.0030.05720.15
5.5.130.0000.04320.24
5.5.120.0070.03720.26
5.5.110.0070.06319.99
5.5.100.0070.06020.11
5.5.90.0030.06720.02
5.5.80.0030.06020.16
5.5.70.0070.03320.07
5.5.60.0030.07720.04
5.5.50.0070.03720.03
5.5.40.0000.03720.06
5.5.30.0070.03320.15
5.5.20.0130.03020.07
5.5.10.0070.05320.11
5.5.00.0000.03720.01
5.4.450.0030.08319.45
5.4.440.0030.08019.37
5.4.430.0070.05319.35
5.4.420.0130.07019.22
5.4.410.0070.07019.22
5.4.400.0030.04019.23
5.4.390.0070.05719.09
5.4.380.0000.04019.16
5.4.370.0100.02719.07
5.4.360.0070.07318.87
5.4.350.0030.03719.04
5.4.340.0070.06318.91
5.4.320.0030.07719.16
5.4.310.0170.03719.13
5.4.300.0030.03318.84
5.4.290.0000.07719.02
5.4.280.0070.07019.18
5.4.270.0070.03718.96
5.4.260.0000.03719.13
5.4.250.0070.06318.84
5.4.240.0030.04319.04
5.4.230.0070.03318.86
5.4.220.0030.04319.13
5.4.210.0030.06018.84
5.4.200.0200.04319.14
5.4.190.0030.06719.21
5.4.180.0000.06019.03
5.4.170.0000.08719.11
5.4.160.0070.06019.09
5.4.150.0000.04018.88
5.4.140.0070.07316.31
5.4.130.0100.03316.43
5.4.120.0100.03016.24
5.4.110.0070.07016.41
5.4.100.0070.06316.50
5.4.90.0000.03316.27
5.4.80.0130.05016.32
5.4.70.0030.03016.25
5.4.60.0100.06716.26
5.4.50.0070.03316.27
5.4.40.0030.06316.52
5.4.30.0030.03016.48
5.4.20.0000.05016.47
5.4.10.0030.07716.32
5.4.00.0070.06315.90
5.3.290.0130.06314.81
5.3.280.0030.04014.52
5.3.270.0070.06014.73
5.3.260.0030.03314.75
5.3.250.0070.05714.71
5.3.240.0030.07314.58
5.3.230.0030.06314.74
5.3.220.0000.04014.63
5.3.210.0070.07014.56
5.3.200.0000.08014.63
5.3.190.0030.07714.52
5.3.180.0130.06314.68
5.3.170.0000.05714.63
5.3.160.0170.02714.62
5.3.150.0100.03014.58
5.3.140.0000.03714.54
5.3.130.0100.05014.64
5.3.120.0030.07714.58
5.3.110.0070.05714.55
5.3.100.0030.03314.09
5.3.90.0070.07013.97
5.3.80.0070.07714.05
5.3.70.0030.07314.03
5.3.60.0070.07314.12
5.3.50.0130.06013.88
5.3.40.0030.06013.98
5.3.30.0130.06014.00
5.3.20.0100.07013.73
5.3.10.0000.05013.64
5.3.00.0070.02713.73
5.2.170.0000.04312.61
5.2.160.0000.06712.61
5.2.150.0000.05012.61
5.2.140.0000.05312.61
5.2.130.0000.05312.61
5.2.120.0030.02712.61
5.2.110.0100.05312.61
5.2.100.0000.04312.61
5.2.90.0070.05712.61
5.2.80.0030.06012.61
5.2.70.0100.04012.61
5.2.60.0070.05312.61
5.2.50.0100.04312.61
5.2.40.0030.06012.61
5.2.30.0030.04312.61
5.2.20.0000.02712.61
5.2.10.0070.03712.61
5.2.00.0100.02312.61
5.1.60.0070.02012.61
5.1.50.0030.03012.61
5.1.40.0000.04312.61
5.1.30.0000.06012.61
5.1.20.0030.04712.61
5.1.10.0030.03312.61
5.1.00.0070.03712.61
5.0.50.0030.02712.61
5.0.40.0000.02012.61
5.0.30.0070.04712.61
5.0.20.0030.04312.61
5.0.10.0030.02312.61
5.0.00.0030.07012.61
4.4.90.0000.03712.61
4.4.80.0030.02012.61
4.4.70.0030.01012.61
4.4.60.0000.01312.61
4.4.50.0070.01712.61
4.4.40.0000.04012.61
4.4.30.0000.02012.61
4.4.20.0000.03312.61
4.4.10.0000.02712.61
4.4.00.0000.02312.61
4.3.110.0070.01312.61
4.3.100.0000.04312.61
4.3.90.0000.01312.61
4.3.80.0000.02012.61
4.3.70.0000.03312.61
4.3.60.0030.03312.61
4.3.50.0000.03012.61
4.3.40.0000.02012.61
4.3.30.0000.03712.61
4.3.20.0000.01712.61
4.3.10.0000.02312.61
4.3.00.0000.03012.61

preferences:
43.31 ms | 401 KiB | 5 Q