3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ public function __call($method, $args) { if(is_callable(array($this, $method))) { return call_user_func_array($this->$method, $args); } // else throw exception } } $c = function($who) { return "Hello $who"; }; echo $c->call(new Foo,'Wide World');

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.0110.01116.38
8.3.50.0160.00521.99
8.3.40.0070.00718.73
8.3.30.0080.00818.79
8.3.20.0040.00420.04
8.3.10.0040.00423.65
8.3.00.0040.00417.63
8.2.180.0190.00318.29
8.2.170.0040.01122.96
8.2.160.0110.00419.45
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.50
8.2.110.0030.00620.89
8.2.100.0090.00317.84
8.2.90.0000.00817.81
8.2.80.0030.00717.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0090.00019.33
8.2.30.0040.00420.69
8.2.20.0000.00817.57
8.2.10.0020.00517.98
8.2.00.0000.00817.94
8.1.280.0110.00725.92
8.1.270.0060.00323.92
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00622.48
8.1.230.0060.00620.80
8.1.220.0030.00517.74
8.1.210.0090.00018.90
8.1.200.0030.00617.36
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0000.00918.88
8.1.160.0040.00422.08
8.1.150.0040.00418.80
8.1.140.0000.00819.64
8.1.130.0000.00817.62
8.1.120.0030.00317.51
8.1.110.0080.00017.45
8.1.100.0070.00017.43
8.1.90.0070.00017.39
8.1.80.0000.00817.37
8.1.70.0030.00317.52
8.1.60.0070.00017.54
8.1.50.0040.00417.56
8.1.40.0050.00317.42
8.1.30.0040.00417.69
8.1.20.0000.00817.68
8.1.10.0000.00717.45
8.1.00.0040.00417.50
8.0.300.0040.00420.03
8.0.290.0000.00716.63
8.0.280.0070.00018.42
8.0.270.0040.00417.31
8.0.260.0030.00317.27
8.0.250.0030.00517.03
8.0.240.0040.00416.96
8.0.230.0040.00417.02
8.0.220.0000.00716.82
8.0.210.0000.00716.83
8.0.200.0030.00316.95
8.0.190.0000.00816.91
8.0.180.0050.00316.83
8.0.170.0030.00616.92
8.0.160.0000.00716.89
8.0.150.0070.00016.90
8.0.140.0040.00416.84
8.0.130.0000.00513.30
8.0.120.0000.00716.75
8.0.110.0000.00816.79
8.0.100.0040.00416.89
8.0.90.0000.00716.93
8.0.80.0040.01216.95
8.0.70.0040.00416.77
8.0.60.0000.00817.01
8.0.50.0040.00416.89
8.0.30.0050.01317.09
8.0.20.0080.01017.40
8.0.10.0000.00717.04
8.0.00.0100.00716.72
7.4.330.0000.00515.08
7.4.320.0060.00016.50
7.4.300.0000.00616.55
7.4.290.0000.00716.52
7.4.280.0000.00816.48
7.4.270.0030.00316.43
7.4.260.0030.00316.58
7.4.250.0050.00216.60
7.4.240.0020.00516.58
7.4.230.0040.00416.41
7.4.220.0090.00916.61
7.4.210.0040.01216.57
7.4.200.0000.00716.72
7.4.160.0030.01216.46
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0080.01016.54
7.4.120.0080.01016.44
7.4.110.0130.00416.27
7.4.100.0090.01216.70
7.4.90.0100.00716.68
7.4.80.0090.00819.39
7.4.70.0130.01216.49
7.4.60.0060.01016.41
7.4.50.0000.00816.40
7.4.40.0170.00016.43
7.4.30.0110.01016.50
7.4.00.0040.00714.87
7.3.330.0050.00013.30
7.3.320.0000.00513.25
7.3.310.0000.00716.34
7.3.300.0050.00216.26
7.3.290.0000.00716.11
7.3.280.0100.00816.29
7.3.270.0120.00617.40
7.3.260.0110.00616.34
7.3.250.0080.01016.28
7.3.240.0080.01016.41
7.3.230.0150.00016.39
7.3.210.0150.00316.64
7.3.200.0100.01016.27
7.3.190.0030.01316.61
7.3.180.0130.00616.30
7.3.170.0040.01216.52
7.3.160.0130.00316.63
7.2.330.0110.00716.46
7.2.320.0070.01416.73
7.2.310.0090.00916.81
7.2.300.0070.01016.54
7.2.290.0100.00716.77
7.2.60.0060.00616.52
7.2.00.0060.00619.27
7.1.200.0070.00715.44
7.1.100.0030.01017.85
7.1.70.0040.00416.95
7.1.60.0100.01419.43
7.1.50.0100.01616.55
7.1.00.0000.06022.48
7.0.200.0030.00316.70
7.0.60.0100.04719.90
7.0.50.0000.08717.88
7.0.40.0030.04320.23
7.0.30.0300.05320.23
7.0.20.0370.07720.06
7.0.10.0400.04320.26
7.0.00.0170.04720.27
5.6.280.0000.07021.11
5.6.210.0230.07020.77
5.6.200.0200.06718.17
5.6.190.0070.06720.55
5.6.180.0000.04320.48
5.6.170.0130.05020.71
5.6.160.0100.07020.50
5.6.150.0100.04718.29
5.6.140.0030.09018.17
5.6.130.0070.08318.18
5.6.120.0130.07021.02
5.6.110.0130.08021.14
5.6.100.0170.07021.00
5.6.90.0100.05721.13
5.6.80.0130.07720.51
5.6.70.4470.04020.38
5.5.350.0000.09020.33
5.5.340.0100.07717.98
5.5.330.0300.03720.21
5.5.320.0000.04320.36
5.5.310.0330.05720.34
5.5.300.0030.08317.96
5.5.290.0070.08318.09
5.5.280.0030.04020.68
5.5.270.0070.07320.98
5.5.260.0000.05020.80
5.5.250.0100.08320.59
5.5.240.0130.06020.12
5.4.450.0930.06019.59
5.4.440.0830.04019.48
5.4.430.0800.05719.47
5.4.420.0670.05319.63
5.4.410.0670.05319.43
5.4.400.0530.06318.88
5.4.390.0900.05319.06
5.4.380.0830.05719.22
5.4.370.0630.05319.13
5.4.360.0630.05718.84
5.4.350.0670.05319.29
5.4.340.0670.05319.12
5.4.320.0630.05719.06
5.4.310.0800.05019.23
5.4.300.0630.05319.28
5.4.290.0600.05719.14
5.4.280.0830.05019.30
5.4.270.0770.05719.15
5.4.260.0670.05019.13
5.4.250.0600.06019.30
5.4.240.0870.04319.28
5.4.230.0800.05019.25
5.4.220.0800.04719.02
5.4.210.0570.06019.26
5.4.200.0670.05719.30
5.4.190.0730.05719.11
5.4.180.0900.05718.84
5.4.170.0770.06019.14
5.4.160.1000.05718.95
5.4.150.0800.05018.99
5.4.140.0730.05316.51
5.4.130.0870.03716.32
5.4.120.0930.06316.69
5.4.110.0830.06316.52
5.4.100.0930.04316.63
5.4.90.0900.03716.28
5.4.80.0700.04316.58
5.4.70.0670.06316.18
5.4.60.0770.05016.60
5.4.50.0770.05016.23
5.4.40.0770.05016.60
5.4.30.0800.04716.57
5.4.20.0830.04016.59
5.4.10.0830.05716.59
5.4.00.0930.06316.00

preferences:
45.84 ms | 404 KiB | 6 Q