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() { (function(){ foo::nat(); })(); } } $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.0170.00318.55
8.3.50.0100.00722.11
8.3.40.0040.01118.76
8.3.30.0040.01119.09
8.3.20.0040.00420.21
8.3.10.0040.00421.92
8.3.00.0040.00422.30
8.2.180.0110.00716.75
8.2.170.0150.00022.96
8.2.160.0110.00420.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.48
8.2.110.0060.00322.26
8.2.100.0120.00317.78
8.2.90.0080.00018.82
8.2.80.0000.00818.04
8.2.70.0060.00317.63
8.2.60.0030.00617.92
8.2.50.0040.00418.07
8.2.40.0000.00718.03
8.2.30.0040.00418.13
8.2.20.0030.00517.67
8.2.10.0040.00417.65
8.2.00.0040.00419.46
8.1.280.0090.00625.92
8.1.270.0030.00522.19
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.83
8.1.230.0060.00619.00
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00917.25
8.1.190.0030.00617.50
8.1.180.0000.00818.10
8.1.170.0030.00618.50
8.1.160.0040.00422.15
8.1.150.0000.00718.61
8.1.140.0000.00817.39
8.1.130.0040.00417.71
8.1.120.0080.00017.55
8.1.110.0000.00717.38
8.1.100.0040.00417.48
8.1.90.0030.00517.52
8.1.80.0000.00717.42
8.1.70.0000.00717.46
8.1.60.0040.00417.50
8.1.50.0040.00417.48
8.1.40.0070.00017.53
8.1.30.0040.00417.61
8.1.20.0030.00517.68
8.1.10.0040.00417.65
8.1.00.0040.00417.44
8.0.300.0030.00318.77
8.0.290.0000.00717.18
8.0.280.0080.00018.41
8.0.270.0000.00717.17
8.0.260.0000.00716.74
8.0.250.0000.00717.01
8.0.240.0030.00616.85
8.0.230.0030.00316.95
8.0.220.0000.00716.89
8.0.210.0030.00316.78
8.0.200.0000.00616.88
8.0.190.0000.00916.84
8.0.180.0030.00316.97
8.0.170.0040.00416.83
8.0.160.0000.00716.88
8.0.150.0090.00016.90
8.0.140.0040.00416.74
8.0.130.0030.00313.32
8.0.120.0040.00416.86
8.0.110.0000.00716.80
8.0.100.0000.00716.83
8.0.90.0000.00816.88
8.0.80.0070.00716.86
8.0.70.0000.00716.94
8.0.60.0000.00816.91
8.0.50.0040.00416.85
8.0.30.0060.01717.17
8.0.20.0100.01017.40
8.0.10.0040.00416.96
8.0.00.0080.01016.72
7.4.330.0050.00015.10
7.4.320.0070.00016.46
7.4.300.0000.00716.42
7.4.290.0070.00016.53
7.4.280.0030.00316.63
7.4.270.0040.00416.43
7.4.260.0000.01116.60
7.4.250.0040.00416.60
7.4.240.0020.00516.57
7.4.230.0070.00016.61
7.4.220.0100.01316.55
7.4.210.0090.00516.52
7.4.200.0040.00416.63
7.4.190.0000.00716.69
7.4.160.0140.01016.44
7.4.150.0070.01117.40
7.4.140.0130.00617.86
7.4.130.0110.00616.62
7.4.120.0070.01316.56
7.4.110.0190.00316.55
7.4.100.0140.00316.43
7.4.90.0140.00316.38
7.4.80.0130.00719.39
7.4.70.0000.02116.57
7.4.60.0090.00916.53
7.4.50.0090.00016.28
7.4.40.0120.00622.77
7.4.30.0130.00316.59
7.4.10.0100.01016.16
7.4.00.0070.01015.77
7.3.330.0000.00513.12
7.3.320.0050.00013.14
7.3.310.0040.00416.31
7.3.300.0030.00316.26
7.3.290.0100.00616.32
7.3.280.0050.01016.29
7.3.270.0040.01817.40
7.3.260.0100.00716.27
7.3.250.0070.01016.39
7.3.240.0000.01716.21
7.3.230.0120.00616.39
7.3.210.0030.01316.46
7.3.200.0030.01319.39
7.3.190.0130.00616.54
7.3.180.0060.01116.36
7.3.170.0150.00916.36
7.3.160.0100.00616.60
7.3.130.0120.00816.47
7.3.120.0110.00615.68
7.3.110.0040.01116.51
7.3.100.0090.00616.08
7.3.90.0100.00716.17
7.3.80.0160.00016.41
7.3.70.0120.00316.22
7.3.60.0100.00016.22
7.3.50.0070.00316.37
7.3.40.0040.01016.38
7.3.30.0030.01316.43
7.3.20.0060.00918.21
7.3.10.0120.00018.16
7.3.00.0060.00318.04
7.2.330.0060.01416.78
7.2.320.0060.01316.69
7.2.310.0030.01316.86
7.2.300.0060.01116.37
7.2.290.0090.00916.79
7.2.260.0100.01016.50
7.2.250.0100.01016.74
7.2.240.0040.01216.67
7.2.230.0030.01416.55
7.2.220.0140.00716.52
7.2.210.0030.01316.71
7.2.200.0060.01016.48
7.2.190.0000.01816.49
7.2.180.0090.00916.45
7.2.170.0100.00716.56
7.2.160.0090.00916.59
7.2.150.0090.00618.31
7.2.140.0070.00318.39
7.2.130.0070.01118.43
7.2.120.0070.01018.30
7.2.110.0040.00818.48
7.2.100.0090.00918.49
7.2.90.0060.00918.38
7.2.80.0030.01318.16
7.2.70.0090.00918.35
7.2.60.0030.01317.67
7.2.50.0090.00618.38
7.2.40.0030.01018.21
7.2.30.0030.00718.45
7.2.20.0060.00918.27
7.2.10.0060.01218.34
7.2.00.0050.01119.11
7.1.330.0040.00817.36
7.1.320.0060.01017.34
7.1.310.0070.00717.29
7.1.300.0030.01017.33
7.1.290.0100.00317.24
7.1.280.0060.00917.26
7.1.270.0030.01217.20
7.1.260.0100.00317.24
7.1.250.0040.00817.22
7.1.240.0100.00317.43
7.1.230.0070.00717.14
7.1.220.0060.00917.30
7.1.210.0030.00917.27
7.1.200.0030.01016.42
7.1.190.0070.01017.25
7.1.180.0120.00017.37
7.1.170.0090.00917.14
7.1.160.0070.00717.06
7.1.150.0060.00617.21
7.1.140.0070.00317.31
7.1.130.0060.00617.19
7.1.120.0040.00817.19
7.1.110.0040.01217.18
7.1.100.0060.00617.67
7.1.90.0090.00617.12
7.1.80.0070.00717.31
7.1.70.0090.00617.30
7.1.60.0060.01318.54
7.1.50.0090.01017.07
7.1.40.0150.00316.98
7.1.30.0030.01017.19
7.1.20.0080.00617.13
7.1.10.0070.01017.27
7.1.00.0050.03819.88
7.0.330.0090.00616.99
7.0.320.0080.00316.88
7.0.310.0090.00016.80
7.0.300.0100.00016.84
7.0.290.0030.01016.97
7.0.280.0100.00317.06
7.0.270.0090.00316.88
7.0.260.0030.01016.87
7.0.250.0000.01116.82
7.0.240.0060.00616.93
7.0.230.0030.00617.02
7.0.220.0030.01017.12
7.0.210.0030.00616.97
7.0.200.0020.01216.86
7.0.190.0130.00316.90
7.0.180.0070.00717.14
7.0.170.0000.01117.00
7.0.160.0000.01117.02
7.0.150.0070.01016.93
7.0.140.0010.04419.43
7.0.130.0000.01116.94
7.0.120.0110.00417.03
7.0.110.0070.01017.04
7.0.100.0110.03418.50
7.0.90.0080.05118.43
7.0.80.0070.04018.40
7.0.70.0080.04518.31
7.0.60.0110.04318.49
7.0.50.0100.04918.67
7.0.40.0060.04617.55
7.0.30.0070.04317.62
7.0.20.0080.04617.44
7.0.10.0100.04217.50
7.0.00.0090.03717.53
5.6.400.0090.00615.52
5.6.390.0040.01115.71
5.6.380.0090.00615.59
5.6.370.0070.00715.62
5.6.360.0040.01115.73
5.6.350.0070.00715.48
5.6.340.0030.00615.67
5.6.330.0050.00515.71
5.6.320.0000.01515.67
5.6.310.0070.00715.71
5.6.300.0100.00715.66
5.6.290.0030.01415.70
5.6.280.0050.04018.39
5.6.270.0090.00615.45
5.6.260.0060.00915.59
5.6.250.0110.04318.17
5.6.240.0020.03918.18
5.6.230.0050.03818.03
5.6.220.0060.04518.21
5.6.210.0070.03818.13
5.6.200.0110.04118.40
5.6.190.0070.03218.21
5.6.180.0080.04518.28
5.6.170.0070.04018.29
5.6.160.0070.04418.43
5.6.150.0050.03818.34
5.6.140.0140.04118.30
5.6.130.0080.04418.33
5.6.120.0060.04318.41
5.6.110.0060.04418.39
5.6.100.0170.03518.26
5.6.90.0120.04118.32
5.6.80.0120.03717.92
5.6.70.0070.02517.96
5.6.60.0100.02718.03
5.6.50.0150.02617.96
5.6.40.0050.02617.92
5.6.30.0030.03517.85
5.6.20.0080.03717.92
5.6.10.0090.02218.00
5.6.00.0020.02817.91
5.5.380.0030.04317.90
5.5.370.0070.04218.01
5.5.360.0100.04517.97
5.5.350.0050.03417.96
5.5.340.0060.03618.04
5.5.330.0060.04918.17
5.5.320.0080.03718.09
5.5.310.0030.03318.09
5.5.300.0070.04518.13
5.5.290.0030.03218.25
5.5.280.0110.04018.21
5.5.270.0030.03418.09
5.5.260.0070.04117.99
5.5.250.0050.03118.01
5.5.240.0040.03917.83
5.5.230.0080.03717.79
5.5.220.0100.03917.67
5.5.210.0040.04417.81
5.5.200.0100.03517.93
5.5.190.0080.04117.74
5.5.180.0110.03317.82
5.5.170.0040.01115.44
5.5.160.0070.04117.76
5.5.150.0070.02417.75
5.5.140.0080.04517.92
5.5.130.0060.04117.76
5.5.120.0050.02817.82
5.5.110.0080.04317.72
5.5.100.0110.03817.75
5.5.90.0050.04417.74
5.5.80.0020.03817.77
5.5.70.0070.02317.56
5.5.60.0100.02217.49
5.5.50.0120.03817.67
5.5.40.0080.02517.76
5.5.30.0100.04117.85
5.5.20.0060.04517.68
5.5.10.0040.04217.71
5.5.00.0030.04117.72
5.4.450.0090.04415.95
5.4.440.0070.04015.94
5.4.430.0050.04716.07
5.4.420.0080.03816.06
5.4.410.0160.02815.98
5.4.400.0080.03815.94
5.4.390.0070.04015.85
5.4.380.0050.03815.86
5.4.370.0030.03815.80
5.4.360.0050.03815.93
5.4.350.0070.03615.89
5.4.340.0030.03815.85
5.4.330.0040.00812.65
5.4.320.0080.02315.91
5.4.310.0050.04415.84
5.4.300.0130.03715.84
5.4.290.0080.04015.90
5.4.280.0060.02315.94
5.4.270.0060.04015.84
5.4.260.0070.03815.88
5.4.250.0130.03715.91
5.4.240.0060.03415.84
5.4.230.0070.04115.89
5.4.220.0070.02015.90
5.4.210.0050.02315.84
5.4.200.0100.02015.87
5.4.190.0070.04015.84
5.4.180.0080.03315.94
5.4.170.0140.03515.87
5.4.160.0030.03715.90
5.4.150.0080.02415.76
5.4.140.0120.03514.52
5.4.130.0050.04214.52
5.4.120.0000.04214.51
5.4.110.0060.03514.57
5.4.100.0020.02514.53
5.4.90.0020.04114.61
5.4.80.0030.03014.56
5.4.70.0050.03814.57
5.4.60.0060.04114.55
5.4.50.0020.04114.52
5.4.40.0080.03214.47
5.4.30.0000.04014.52
5.4.20.0120.03514.51
5.4.10.0070.04114.56
5.4.00.0050.02714.22
5.3.290.0030.02713.78
5.3.280.0070.04313.69
5.3.270.0070.03813.69
5.3.260.0120.03713.73
5.3.250.0100.03613.80
5.3.240.0070.04213.64
5.3.230.0070.04113.65
5.3.220.0020.02713.65
5.3.210.0050.02613.75
5.3.200.0070.02313.71
5.3.190.0080.04313.73
5.3.180.0100.01713.87
5.3.170.0060.03913.85
5.3.160.0050.03613.76
5.3.150.0070.02513.81
5.3.140.0060.04013.80
5.3.130.0060.03913.78
5.3.120.0070.03813.77
5.3.110.0100.03513.65
5.3.100.0080.04113.47
5.3.90.0040.03113.41
5.3.80.0030.04213.41
5.3.70.0100.03113.47
5.3.60.0090.03513.49
5.3.50.0090.03713.37
5.3.40.0030.03013.34
5.3.30.0060.03313.50
5.3.20.0070.04013.17
5.3.10.0040.04113.16
5.3.00.0090.03913.10
5.2.170.0130.04311.27
5.2.160.0100.03011.07
5.2.150.0000.05711.21
5.2.140.0100.05711.20
5.2.130.0030.06011.20
5.2.120.0000.05311.16
5.2.110.0030.06011.02
5.2.100.0000.05011.22
5.2.90.0070.06011.23
5.2.80.0070.05011.16
5.2.70.0070.06011.11
5.2.60.0070.06711.19
5.2.50.0070.06311.11
5.2.40.0130.05010.93
5.2.30.0030.03010.91
5.2.20.0030.06310.99
5.2.10.0070.04310.92
5.2.00.0030.05310.67
5.1.60.0030.05710.08
5.1.50.0070.03310.08
5.1.40.0000.06010.03
5.1.30.0030.03010.28
5.1.20.0030.05710.35
5.1.10.0000.05710.10
5.1.00.0030.05710.15
5.0.50.0170.0378.55
5.0.40.0030.0378.47
5.0.30.0030.0638.30
5.0.20.0000.0308.25
5.0.10.0100.0378.25
5.0.00.0130.0478.25
4.4.90.0000.0378.25
4.4.80.0130.0238.25
4.4.70.0100.0278.25
4.4.60.0000.0278.25
4.4.50.0000.0378.25
4.4.40.0030.0438.25
4.4.30.0030.0378.25
4.4.20.0000.0378.25
4.4.10.0030.0338.25
4.4.00.0030.0308.25
4.3.110.0000.0378.25
4.3.100.0030.0238.25
4.3.90.0000.0308.25
4.3.80.0070.0508.25
4.3.70.0030.0308.25
4.3.60.0000.0378.25
4.3.50.0000.0408.25
4.3.40.0030.0338.25
4.3.30.0030.0278.25
4.3.20.0030.0338.25
4.3.10.0000.0378.25
4.3.00.0030.0338.25

preferences:
47.59 ms | 401 KiB | 5 Q