3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foobar($arg, $arg2) { echo __FUNCTION__, " got $arg and $arg2\n"; } class foo { function bar($arg, $arg2) { echo __METHOD__, " got $arg and $arg2\n"; } } // Call the foobar() function with 2 arguments call_user_func_array("foobar", array("arg"=> "three", "arg2" => "four")); // Call the $foo->bar() method with 2 arguments $foo = new foo; call_user_func_array(array($foo, "bar"), array("arg"=> "three", "arg2" => "four"));

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.4.10.0080.00017.82
8.3.140.0110.00416.45
8.3.130.0080.00018.64
8.3.120.0080.00020.53
8.3.110.0110.01120.94
8.3.100.0060.00316.62
8.3.90.0200.00026.77
8.3.80.0030.00719.36
8.3.70.0150.00616.63
8.3.60.0140.00616.61
8.3.50.0070.00716.42
8.3.40.0120.00618.83
8.3.30.0100.00718.89
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.260.0060.00316.42
8.2.250.0040.00416.48
8.2.240.0070.01017.17
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0070.01126.77
8.2.200.0140.00018.88
8.2.190.0070.01116.58
8.2.180.0070.00725.92
8.2.170.0070.01018.79
8.2.160.0030.01022.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0030.00526.35
8.2.110.0000.01020.52
8.2.100.0070.00717.80
8.2.90.0000.00917.88
8.2.80.0040.00418.84
8.2.70.0050.00317.50
8.2.60.0050.00317.91
8.2.50.0060.00318.05
8.2.40.0040.00420.01
8.2.30.0000.00717.93
8.2.20.0000.00718.11
8.2.10.0000.00719.18
8.2.00.0000.00719.23
8.1.310.0040.01417.90
8.1.300.0000.00718.51
8.1.290.0090.00030.84
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00617.48
8.1.230.0090.00319.48
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00718.64
8.1.160.0080.00018.93
8.1.150.0000.00718.84
8.1.140.0030.00618.87
8.1.130.0030.00320.14
8.1.120.0000.00717.38
8.1.110.0070.00017.29
8.1.100.0000.00817.45
8.1.90.0040.00717.53
8.1.80.0030.00717.47
8.1.70.0050.00217.45
8.1.60.0020.00517.59
8.1.50.0030.00617.43
8.1.40.0040.00417.40
8.1.30.0040.00817.54
8.1.20.0090.00017.62
8.1.10.0030.00517.48
8.1.00.0030.00517.48
8.0.300.0090.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00818.44
8.0.270.0030.00317.93
8.0.260.0000.00718.48
8.0.250.0040.00416.87
8.0.240.0040.00416.87
8.0.230.0080.00016.88
8.0.220.0000.00816.78
8.0.210.0000.00716.75
8.0.200.0000.00816.84
8.0.190.0040.00416.96
8.0.180.0070.00016.91
8.0.170.0000.00916.95
8.0.160.0000.00816.78
8.0.150.0080.00016.83
8.0.140.0000.00716.68
8.0.130.0030.00313.30
8.0.120.0060.00316.84
8.0.110.0000.01016.80
8.0.100.0040.00416.92
8.0.90.0040.00416.73
8.0.80.0070.01016.84
8.0.70.0050.00216.88
8.0.60.0080.00016.87
8.0.50.0000.00816.68
8.0.30.0120.00916.80
8.0.20.0160.00716.89
8.0.10.0030.01317.05
8.0.00.0100.01417.09
7.4.330.0000.00515.55
7.4.320.0000.00616.60
7.4.300.0000.00616.54
7.4.290.0030.00316.43
7.4.280.0000.00916.50
7.4.270.0000.00716.51
7.4.260.0030.00313.27
7.4.250.0000.00716.54
7.4.240.0020.00616.52
7.4.230.0030.00316.71
7.4.220.0050.00216.50
7.4.210.0080.00616.45
7.4.200.0000.00716.44
7.4.160.0120.00916.52
7.4.150.0100.01316.57
7.4.140.0070.01416.32
7.4.130.0110.01116.48
7.4.120.0130.00916.62
7.4.110.0120.00816.41
7.4.100.0030.01616.46
7.4.90.0110.00816.42
7.4.80.0090.01016.36
7.4.70.0140.00616.34
7.4.60.0120.00916.50
7.4.50.0080.00916.41
7.4.40.0130.01016.29
7.4.30.0110.01016.48
7.4.20.0040.01716.35
7.4.10.0100.01316.62
7.4.00.0100.01216.38
7.3.330.0030.00316.24
7.3.320.0050.00013.37
7.3.310.0030.00516.27
7.3.300.0000.00716.27
7.3.290.0070.01216.39
7.3.270.0090.01216.35
7.3.260.0060.01316.34
7.3.250.0130.01016.35
7.3.240.0150.00316.36
7.3.230.0060.01216.35
7.3.220.0030.01616.21
7.3.210.0060.01216.25
7.3.200.0090.01016.22
7.3.190.0040.01716.30
7.3.180.0090.00916.20
7.3.170.0070.01616.34
7.3.160.0150.00616.28
7.3.150.0030.01616.28
7.3.140.0120.00916.30
7.3.130.0060.01516.42
7.3.120.0110.01116.28
7.3.110.0120.01016.21
7.3.100.0060.01316.16
7.3.90.0060.01516.58
7.3.80.0090.01216.24
7.3.70.0060.01616.29
7.3.60.0090.00816.47
7.3.50.0060.00916.45
7.3.40.0040.01216.48
7.3.30.0120.00316.41
7.3.20.0070.01016.54
7.3.10.0100.01016.42
7.3.00.0090.01016.39

preferences:
32.1 ms | 403 KiB | 5 Q