3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $baz = 'Oh hai '; public function bar($name) { try { return $this->baz . $name; } catch(\Exception $e) { return 'I have no idea what I am doing.'; } } } $foo = new Foo(); // Instance var_dump(call_user_func_array(array($foo, 'bar'), array('Mark'))); // Non staic usage var_dump(call_user_func_array(array('Foo', 'bar'), array('Mark')));

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.0070.00716.75
8.3.50.0070.00716.34
8.3.40.0060.00918.54
8.3.30.0080.01218.70
8.3.20.0040.00420.33
8.3.10.0070.00021.69
8.3.00.0040.00423.66
8.2.180.0120.00318.66
8.2.170.0100.01019.04
8.2.160.0110.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00919.77
8.2.120.0050.00326.35
8.2.110.0060.00319.18
8.2.100.0040.00718.04
8.2.90.0000.00819.13
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0060.00318.04
8.2.50.0030.00618.07
8.2.40.0000.01020.55
8.2.30.0050.00219.48
8.2.20.0000.00817.75
8.2.10.0080.00017.98
8.2.00.0070.00018.12
8.1.280.0120.00925.92
8.1.270.0040.00423.84
8.1.260.0110.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00717.36
8.1.230.0030.00719.10
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0060.00318.50
8.1.160.0070.00020.77
8.1.150.0040.00418.90
8.1.140.0040.00919.50
8.1.130.0030.00317.58
8.1.120.0000.00817.41
8.1.110.0040.00417.43
8.1.100.0000.00717.50
8.1.90.0000.00817.46
8.1.80.0000.00717.49
8.1.70.0070.00017.36
8.1.60.0000.00817.59
8.1.50.0050.00317.55
8.1.40.0050.00317.57
8.1.30.0040.00417.73
8.1.20.0000.00717.59
8.1.10.0000.00717.54
8.1.00.0020.00517.53
8.0.300.0070.00018.77
8.0.290.0080.00016.63
8.0.280.0030.00318.33
8.0.270.0030.00317.30
8.0.260.0000.00717.30
8.0.250.0070.00017.05
8.0.240.0000.00717.01
8.0.230.0000.00817.06
8.0.220.0000.00717.00
8.0.210.0030.00317.00
8.0.200.0000.00717.05
8.0.190.0040.00417.05
8.0.180.0000.00816.98
8.0.170.0040.00416.87
8.0.160.0080.00017.00
8.0.150.0000.00816.82
8.0.140.0050.00316.93
8.0.130.0000.00613.34
8.0.120.0000.00816.92
8.0.110.0040.00416.90
8.0.100.0020.00516.84
8.0.90.0000.00716.74
8.0.80.0000.01716.83
8.0.70.0080.00016.98
8.0.60.0070.00016.84
8.0.50.0000.00716.92
8.0.30.0100.00717.06
8.0.20.0130.00617.40
8.0.10.0000.00817.13
8.0.00.0100.00816.69
7.4.330.0000.00516.67
7.4.320.0000.00716.66
7.4.300.0040.00416.62
7.4.290.0070.00016.62
7.4.280.0050.00516.41
7.4.270.0000.00716.57
7.4.260.0000.00816.60
7.4.250.0030.00516.48
7.4.240.0030.00316.53
7.4.230.0040.00416.35
7.4.220.0110.00616.72
7.4.210.0030.01116.52
7.4.200.0030.00316.50
7.4.160.0110.00416.45
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0170.00516.58
7.4.120.0100.00716.51
7.4.110.0070.01016.61
7.4.100.0070.01116.55
7.4.90.0110.00716.54
7.4.80.0140.00319.39
7.4.70.0090.00916.59
7.4.60.0030.01416.32
7.4.50.0090.00516.44
7.4.40.0060.01616.47
7.4.30.0090.00816.45
7.4.10.0090.00615.02
7.4.00.0050.00815.19
7.3.330.0000.00613.16
7.3.320.0050.00013.37
7.3.310.0040.00416.37
7.3.300.0030.00316.39
7.3.290.0000.00816.34
7.3.280.0110.00416.38
7.3.270.0140.00317.40
7.3.260.0140.00316.41
7.3.240.0080.00916.57
7.3.230.0110.00816.58
7.3.210.0060.01116.43
7.3.200.0130.00319.39
7.3.190.0080.01216.32
7.3.180.0170.00416.45
7.3.170.0060.01016.49
7.3.160.0060.01016.40
7.3.130.0070.01114.92
7.3.120.0130.00614.79
7.3.110.0090.00915.02
7.3.100.0060.00914.91
7.3.90.0100.01014.96
7.3.80.0040.01114.69
7.3.70.0070.01014.95
7.3.60.0100.00314.70
7.3.50.0030.01014.63
7.3.40.0060.00914.95
7.3.30.0030.01014.97
7.3.20.0030.01316.50
7.3.10.0060.00916.69
7.3.00.0030.00616.68
7.2.330.0120.00616.44
7.2.320.0080.01216.47
7.2.310.0080.00816.50
7.2.300.0060.01216.58
7.2.290.0060.01216.78
7.2.260.0060.01315.05
7.2.250.0120.00915.29
7.2.240.0060.00914.99
7.2.230.0070.00715.16
7.2.220.0130.00615.09
7.2.210.0000.01815.30
7.2.200.0070.00715.06
7.2.190.0140.00314.81
7.2.180.0070.01114.75
7.2.170.0060.00915.03
7.2.160.0070.00715.18
7.2.150.0060.00616.93
7.2.140.0060.00916.93
7.2.130.0000.01116.77
7.2.120.0030.01117.00
7.2.110.0070.00716.95
7.2.100.0070.00717.05
7.2.90.0060.01016.80
7.2.80.0120.00317.00
7.2.70.0050.00516.95
7.2.60.0030.00816.86
7.2.50.0000.01716.72
7.2.40.0060.00617.09
7.2.30.0100.00317.04
7.2.20.0100.00616.55
7.2.10.0060.01316.89
7.2.00.0050.00818.15
7.1.330.0090.00615.88
7.1.320.0000.01515.63
7.1.310.0040.01115.64
7.1.300.0100.00315.80
7.1.290.0000.01415.72
7.1.280.0000.01515.39
7.1.270.0030.01015.70
7.1.260.0100.00015.78
7.1.250.0040.01115.47
7.1.240.0030.01015.67
7.1.230.0040.00715.86
7.1.220.0080.00415.77
7.1.210.0060.00615.56
7.1.200.0030.00915.81
7.1.190.0060.00615.65
7.1.180.0100.00315.61
7.1.170.0060.00315.69
7.1.160.0060.00615.71
7.1.150.0070.00415.80
7.1.140.0000.01115.88
7.1.130.0060.00315.63
7.1.120.0000.01115.80
7.1.110.0070.00415.79
7.1.100.0070.00517.05
7.1.90.0080.00315.67
7.1.80.0110.00315.86
7.1.70.0050.00516.34
7.1.60.0060.01117.57
7.1.50.0040.01216.21
7.1.40.0030.01015.48
7.1.30.0070.00415.79
7.1.20.0110.00315.67
7.1.10.0030.00615.89
7.1.00.0020.04419.10
7.0.330.0040.00815.48
7.0.320.0060.00315.43
7.0.310.0070.00715.42
7.0.300.0130.00315.49
7.0.290.0030.00915.34
7.0.280.0040.01115.41
7.0.270.0030.01115.25
7.0.260.0030.00915.32
7.0.250.0040.01115.59
7.0.240.0030.01315.50
7.0.230.0090.00615.47
7.0.220.0050.00515.25
7.0.210.0000.00815.45
7.0.200.0060.00515.97
7.0.190.0090.00315.22
7.0.180.0060.00315.54
7.0.170.0030.00715.32
7.0.160.0040.01115.41
7.0.150.0000.01015.51
7.0.140.0030.00715.54
7.0.130.0060.00615.15
7.0.120.0040.00815.29
7.0.110.0030.00815.52
7.0.100.0060.00315.48
7.0.90.0070.01015.48
7.0.80.0000.01315.19
7.0.70.0000.01115.29
7.0.60.0030.02018.54
7.0.50.0080.03816.62
7.0.40.0050.03016.84
7.0.30.0220.03816.72
7.0.20.0200.03316.97
7.0.10.0120.02816.77
7.0.00.0070.02816.83
5.6.400.0090.00614.30
5.6.390.0080.00614.25
5.6.380.0030.01014.25
5.6.370.0060.01214.12
5.6.360.0090.00614.18
5.6.350.0110.00314.40
5.6.340.0060.00814.68
5.6.330.0090.00614.56
5.6.320.0030.01014.59
5.6.310.0040.00714.35
5.6.300.0090.00014.32
5.6.290.0070.00414.19
5.6.280.0050.02117.72
5.6.270.0030.01214.31
5.6.260.0060.00314.29
5.6.250.0030.01014.55
5.6.240.0000.01514.44
5.6.230.0030.01014.26
5.6.220.0090.00314.22
5.6.210.0090.02117.58
5.6.200.0070.03316.15
5.6.190.0030.02717.50
5.6.180.0090.02517.35
5.6.170.0120.02717.49
5.6.160.0110.03617.36
5.6.150.0040.02416.24
5.6.140.0090.03916.18
5.6.130.0080.04416.17
5.6.120.0070.03517.76
5.6.110.0120.04017.63
5.6.100.0050.04517.64
5.6.90.0060.02617.59
5.6.80.0100.04317.32
5.6.70.0000.01214.11
5.6.60.0030.00614.24
5.6.50.0000.01514.52
5.6.40.0050.00513.98
5.6.30.0070.00414.04
5.6.20.0070.00414.39
5.6.10.0040.00914.06
5.6.00.0100.00314.13
5.5.380.0060.00614.29
5.5.370.0070.00714.34
5.5.360.0100.00314.54
5.5.350.0100.01717.15
5.5.340.0050.03016.06
5.5.330.0100.03217.29
5.5.320.0270.02617.28
5.5.310.0120.02717.13
5.5.300.0140.04016.14
5.5.290.0090.02016.04
5.5.280.0030.03317.55
5.5.270.0070.04517.33
5.5.260.0050.02717.66
5.5.250.0070.04517.40
5.5.240.0080.04617.14
5.5.230.0040.00713.84
5.5.220.0000.01014.12
5.5.210.0060.00913.78
5.5.200.0040.01114.16
5.5.190.0090.00914.11
5.5.180.0110.00614.04
5.5.170.0030.01014.10
5.5.160.0030.00613.96
5.5.150.0070.00714.10
5.5.140.0030.01314.10
5.5.130.0030.01014.25
5.5.120.0070.00714.21
5.5.110.0000.00914.19
5.5.100.0060.00614.09
5.5.90.0090.00614.00
5.5.80.0030.00914.11
5.5.70.0070.00714.33
5.5.60.0000.01413.89
5.5.50.0040.01114.14
5.5.40.0070.00414.18
5.5.30.0070.00714.21
5.5.20.0100.00714.09
5.5.10.0060.00814.37
5.5.00.0070.00313.96

preferences:
50.11 ms | 401 KiB | 5 Q