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_self() { self::ted(); } public function make_call_static() { static::ted(); } function make_call_classname() { foo::bob(); } function make_call_classname_lambda() { $x = function(){ foo::nat(); }; $x(); } } $x = new foo(); $x->make_call_self(); $x->make_call_static(); $x->make_call_classname(); $x->make_call_classname_lambda(); 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.00018.39
8.3.50.0070.01221.08
8.3.40.0110.00318.93
8.3.30.0030.01120.33
8.3.20.0000.00720.31
8.3.10.0050.00321.97
8.3.00.0080.00022.16
8.2.180.0130.00625.92
8.2.170.0180.00018.96
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00019.23
8.2.110.0090.00020.51
8.2.100.0110.00017.78
8.2.90.0080.00017.72
8.2.80.0060.00317.97
8.2.70.0050.00317.80
8.2.60.0030.00618.09
8.2.50.0000.00818.10
8.2.40.0050.00322.32
8.2.30.0050.00319.18
8.2.20.0050.00317.80
8.2.10.0040.00417.67
8.2.00.0030.00517.68
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00320.92
8.1.230.0110.00021.03
8.1.220.0070.00320.95
8.1.210.0040.00418.79
8.1.200.0090.00017.48
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0060.00318.79
8.1.160.0040.00418.77
8.1.150.0040.00420.32
8.1.140.0040.00417.46
8.1.130.0000.00717.84
8.1.120.0040.00417.41
8.1.110.0030.00517.51
8.1.100.0000.00817.37
8.1.90.0000.00717.37
8.1.80.0030.00317.38
8.1.70.0070.00017.32
8.1.60.0060.00317.58
8.1.50.0000.00717.50
8.1.40.0000.00817.57
8.1.30.0050.00317.53
8.1.20.0040.00417.65
8.1.10.0000.00817.56
8.1.00.0030.00517.41
8.0.300.0040.00419.60
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0080.00016.82
8.0.260.0080.00016.86
8.0.250.0030.00317.03
8.0.240.0000.00716.83
8.0.230.0000.00616.86
8.0.220.0040.00416.96
8.0.210.0030.00316.87
8.0.200.0000.00616.96
8.0.190.0030.00316.96
8.0.180.0030.00316.96
8.0.170.0060.00316.89
8.0.160.0000.00717.02
8.0.150.0030.00316.76
8.0.140.0000.00716.82
8.0.130.0030.00313.41
8.0.120.0060.00316.84
8.0.110.0040.00416.90
8.0.100.0050.00316.88
8.0.90.0040.00416.88
8.0.80.0000.01516.85
8.0.70.0000.00716.84
8.0.60.0050.00316.95
8.0.50.0080.00016.69
8.0.30.0090.01117.14
8.0.20.0130.00617.40
8.0.10.0000.00716.84
8.0.00.0070.00916.76
7.4.330.0020.00215.00
7.4.320.0040.00416.42
7.4.300.0030.00316.51
7.4.290.0070.00016.53
7.4.280.0040.00416.35
7.4.270.0050.00316.61
7.4.260.0050.00313.20
7.4.250.0000.00716.48
7.4.240.0040.00416.61
7.4.230.0060.00016.36
7.4.220.0100.01316.41
7.4.210.0120.00316.63
7.4.200.0070.00016.67
7.4.190.0030.00316.74
7.4.160.0140.00416.32
7.4.150.0110.00617.40
7.4.140.0090.01117.86
7.4.130.0090.00816.54
7.4.120.0100.00816.59
7.4.110.0130.00316.41
7.4.100.0120.00616.57
7.4.90.0090.00916.64
7.4.80.0060.01219.39
7.4.70.0170.00016.57
7.4.60.0160.00016.40
7.4.50.0040.00416.32
7.4.40.0030.01322.77
7.4.30.0110.01216.55
7.4.00.0090.00614.72
7.3.330.0020.00213.28
7.3.320.0020.00313.37
7.3.310.0040.00416.33
7.3.300.0030.00316.22
7.3.290.0090.00716.24
7.3.280.0070.00816.24
7.3.270.0140.00617.40
7.3.260.0120.01216.31
7.3.250.0150.00416.43
7.3.240.0110.00616.28
7.3.230.0070.01016.39
7.3.210.0110.00716.50
7.3.200.0100.01019.39
7.3.190.0080.00816.22
7.3.180.0100.01016.41
7.3.170.0060.01016.43
7.3.160.0090.00616.42
7.3.120.0060.00915.05
7.3.00.0070.00716.35
7.2.330.0060.01116.69
7.2.320.0100.00716.78
7.2.310.0000.02216.50
7.2.300.0040.01216.52
7.2.290.0140.00716.57
7.2.130.0060.00616.71
7.2.120.0030.01016.70
7.2.110.0040.01217.01
7.2.100.0100.00316.97
7.2.90.0070.00717.00
7.2.80.0030.00916.87
7.2.70.0070.01017.12
7.2.60.0020.00916.78
7.2.50.0060.00916.91
7.2.40.0060.00316.73
7.2.30.0090.00316.87
7.2.20.0070.00416.72
7.2.10.0040.01216.69
7.2.00.0070.00317.09
7.1.250.0070.01015.89
7.1.240.0100.00715.82
7.1.230.0090.00315.65
7.1.220.0060.00315.75
7.1.210.0030.01015.45
7.1.200.0070.00415.63
7.1.190.0030.01015.86
7.1.180.0050.00515.91
7.1.170.0000.01015.56
7.1.160.0040.01215.80
7.1.150.0030.01015.80
7.1.140.0110.00415.84
7.1.130.0080.01215.61
7.1.120.0080.00815.65
7.1.110.0000.01315.46
7.1.100.0040.00415.67
7.1.90.0100.00315.61
7.1.80.0030.00915.43
7.1.70.0030.00516.31
7.1.60.0020.00917.49
7.1.50.0070.01216.19
7.1.40.0030.00615.80
7.1.30.0100.00315.45
7.1.20.0070.00715.43
7.1.10.0000.01515.65
7.1.00.0080.01819.19
7.0.330.0110.00415.30
7.0.320.0000.01215.57
7.0.310.0040.00715.36
7.0.300.0030.01315.16
7.0.290.0070.00715.34
7.0.280.0130.00315.33
7.0.270.0090.00015.36
7.0.260.0100.00315.29
7.0.250.0040.00715.34
7.0.240.0070.01015.49
7.0.230.0090.00315.42
7.0.220.0030.00615.52
7.0.210.0120.00315.26
7.0.200.0030.00916.02
7.0.190.0070.01015.32
7.0.180.0060.00615.43
7.0.170.0060.00615.44
7.0.160.0030.00915.55
7.0.150.0040.00415.39
7.0.140.0060.03718.59
7.0.130.0090.00615.36
7.0.120.0070.01115.43
7.0.110.0000.00815.44
7.0.100.0040.01115.30
7.0.90.0070.00715.32
7.0.80.0050.00815.00
7.0.70.0110.00915.21
7.0.60.0330.03217.59
7.0.50.0100.03816.49
7.0.40.0180.04116.79
7.0.30.0200.03716.74
7.0.20.0180.03916.63
7.0.10.0170.04216.75
7.0.00.0170.04516.87
5.6.380.0060.01014.44
5.6.370.0030.01313.99
5.6.360.0100.00314.42
5.6.350.0030.00614.63
5.6.340.0030.00614.12
5.6.330.0080.00614.08
5.6.320.0070.00713.89
5.6.310.0040.01414.20
5.6.300.0040.00814.25
5.6.290.0100.00314.21
5.6.280.0120.03517.73
5.6.270.0150.00713.92
5.6.260.0030.00614.18
5.6.250.0070.01014.57
5.6.240.0040.01114.43
5.6.230.0060.00614.28
5.6.220.0100.00314.46
5.6.210.0090.04017.43
5.6.200.0040.02616.18
5.6.190.0230.03617.29
5.6.180.0180.02317.45
5.6.170.0240.03817.33
5.6.160.0120.03417.30
5.6.150.0210.04117.18
5.6.140.0100.04517.33
5.6.130.0120.04717.19
5.6.120.0170.04217.45
5.6.110.0170.04517.19
5.6.100.0200.04317.58
5.6.90.0100.03517.27
5.6.80.0170.04217.07
5.6.70.0190.03817.00
5.6.60.0180.02317.03
5.6.50.0190.03917.15
5.6.40.0170.02716.98
5.6.30.0120.02816.93
5.6.20.0140.03316.86
5.6.10.0100.04516.93
5.6.00.0130.03116.79
5.5.380.0060.00611.28
5.5.370.0030.00711.42
5.5.360.0070.00411.18
5.5.350.0140.03515.83
5.5.340.0030.04714.56
5.5.330.0150.04115.87
5.5.320.0210.03815.84
5.5.310.0110.04615.88
5.5.300.0160.03815.68
5.5.290.0120.02515.56
5.5.280.0100.04015.65
5.5.270.0230.03015.70
5.5.260.0170.03315.68
5.5.250.0170.03815.48
5.5.240.0150.03915.27
5.5.230.0100.03715.41
5.5.220.0130.03315.38
5.5.210.0130.04215.34
5.5.200.0120.03615.36
5.5.190.0120.02315.25
5.5.180.0150.02215.35
5.5.170.0060.00611.18
5.5.160.0140.02515.30
5.5.150.0100.04115.25
5.5.140.0130.04215.41
5.5.130.0170.03915.41
5.5.120.0120.04515.37
5.5.110.0160.03815.36
5.5.100.0140.03915.36
5.5.90.0210.02815.30
5.5.80.0150.03815.20
5.5.70.0190.03515.28
5.5.60.0120.04215.37
5.5.50.0140.03415.28
5.5.40.0160.04015.25
5.5.30.0160.03515.35
5.5.20.0130.03515.32
5.5.10.0150.02015.32
5.5.00.0170.03615.31
5.4.450.0170.03615.37
5.4.440.0080.02515.33
5.4.430.0170.04015.37
5.4.420.0170.03715.35
5.4.410.0130.02015.31
5.4.400.0150.03515.21
5.4.390.0120.03715.19
5.4.380.0120.03815.21
5.4.370.0180.03515.09
5.4.360.0160.02715.21
5.4.350.0050.02915.21
5.4.340.0130.03815.21
5.4.330.0040.00411.18
5.4.320.0180.03315.14
5.4.310.0090.04415.16
5.4.300.0190.03515.21
5.4.290.0150.04215.16
5.4.280.0200.03315.25
5.4.270.0170.03015.16
5.4.260.0160.03815.02
5.4.250.0150.02615.04
5.4.240.0130.03715.14
5.4.230.0120.03415.02
5.4.220.0130.04215.12
5.4.210.0170.03715.13
5.4.200.0120.03215.12
5.4.190.0150.03215.21
5.4.180.0120.02215.01
5.4.170.0150.03015.21
5.4.160.0120.04015.18
5.4.150.0250.02215.12
5.4.140.0180.03013.78
5.4.130.0140.01813.77
5.4.120.0100.02813.81
5.4.110.0140.03213.78
5.4.100.0200.01813.81
5.4.90.0100.02613.75
5.4.80.0120.02713.88
5.4.70.0160.02913.80
5.4.60.0140.02713.84
5.4.50.0140.02813.77
5.4.40.0170.02013.79
5.4.30.0170.01813.77
5.4.20.0130.02313.78
5.4.10.0160.03313.84
5.4.00.0150.03513.51
5.3.290.0070.04712.93
5.3.280.0130.02012.91
5.3.270.0100.04112.93
5.3.260.0150.02112.91
5.3.250.0130.03512.84
5.3.240.0120.03112.94
5.3.230.0190.01512.92
5.3.220.0130.03012.84
5.3.210.0160.04212.88
5.3.200.0120.02212.91
5.3.190.0100.04212.88
5.3.180.0110.03612.90
5.3.170.0180.03512.88
5.3.160.0100.02212.90
5.3.150.0130.02512.91
5.3.140.0100.02012.82
5.3.130.0100.02312.89
5.3.120.0120.02012.88
5.3.110.0150.03112.87
5.3.100.0120.02512.64
5.3.90.0130.03412.64
5.3.80.0170.03412.62
5.3.70.0120.03512.61
5.3.60.0140.03812.57
5.3.50.0120.03212.65
5.3.40.0140.02612.64
5.3.30.0130.01912.58
5.3.20.0120.02512.44
5.3.10.0120.03712.45
5.3.00.0150.02812.49
5.2.170.0090.02911.85
5.2.160.0080.03311.85
5.2.150.0130.02511.85
5.2.140.0100.02711.85
5.2.130.0080.03611.85
5.2.120.0160.02811.85
5.2.110.0110.03011.85
5.2.100.0100.02011.85
5.2.90.0120.02811.85
5.2.80.0100.01611.85
5.2.70.0100.02211.85
5.2.60.0110.02111.85
5.2.50.0140.02211.85
5.2.40.0100.03211.85
5.2.30.0070.03511.85
5.2.20.0170.02511.85
5.2.10.0080.02811.85
5.2.00.0050.01911.85
5.1.60.0080.03011.85
5.1.50.0100.02511.85
5.1.40.0090.02711.85
5.1.30.0070.01811.85
5.1.20.0060.02211.85
5.1.10.0090.02011.85
5.1.00.0150.01511.85
5.0.50.0080.02211.85
5.0.40.0070.02011.85
5.0.30.0060.02011.85
5.0.20.0020.01411.85
5.0.10.0050.02211.85
5.0.00.0070.03011.85
4.4.90.0050.02011.85
4.4.80.0050.02011.85
4.4.70.0080.01711.85
4.4.60.0060.01811.85
4.4.50.0100.01511.85
4.4.40.0080.02311.85
4.4.30.0030.01511.85
4.4.20.0060.01811.85
4.4.10.0050.01011.85
4.4.00.0030.02311.85
4.3.110.0090.01711.85
4.3.100.0040.01011.85
4.3.90.0060.01511.85
4.3.80.0100.01211.85
4.3.70.0030.02011.85
4.3.60.0050.01411.85
4.3.50.0040.00911.85
4.3.40.0020.02411.85
4.3.30.0020.02111.85
4.3.20.0070.02011.85
4.3.10.0000.02111.85
4.3.00.0050.01611.85

preferences:
48.06 ms | 401 KiB | 5 Q