3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $baz = 'Oh hai '; public function bar($name) { return $this->baz . $name; } } $foo = new Foo(); 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.38
8.3.50.0090.00921.16
8.3.40.0120.00918.67
8.3.30.0070.00718.68
8.3.20.0040.00420.16
8.3.10.0050.00323.38
8.3.00.0080.00023.54
8.2.180.0150.00318.54
8.2.170.0140.00022.96
8.2.160.0070.00720.38
8.2.150.0060.00325.66
8.2.140.0030.00524.66
8.2.130.0050.00319.83
8.2.120.0080.00026.35
8.2.110.0030.00721.93
8.2.100.0080.00317.93
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0080.00017.93
8.2.50.0060.00618.07
8.2.40.0000.00820.43
8.2.30.0040.00419.45
8.2.20.0070.00017.67
8.2.10.0050.00318.11
8.2.00.0070.00017.97
8.1.280.0170.00325.92
8.1.270.0040.00420.69
8.1.260.0030.00728.09
8.1.250.0040.00428.09
8.1.240.0100.00022.47
8.1.230.0070.00319.10
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0000.00720.79
8.1.150.0070.00018.86
8.1.140.0060.00319.61
8.1.130.0030.00317.73
8.1.120.0040.00417.43
8.1.110.0050.00217.40
8.1.100.0070.00017.36
8.1.90.0000.00717.33
8.1.80.0040.00417.37
8.1.70.0000.00817.32
8.1.60.0000.00717.46
8.1.50.0000.00817.57
8.1.40.0030.00517.40
8.1.30.0000.00817.47
8.1.20.0030.00617.50
8.1.10.0030.00517.61
8.1.00.0000.00817.49
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00718.45
8.0.270.0030.00317.30
8.0.260.0030.00317.13
8.0.250.0030.00316.96
8.0.240.0070.00016.84
8.0.230.0030.00316.93
8.0.220.0040.00416.79
8.0.210.0040.00416.84
8.0.200.0060.00016.97
8.0.190.0000.00816.94
8.0.180.0080.00016.89
8.0.170.0070.00016.80
8.0.160.0070.00016.79
8.0.150.0050.00216.85
8.0.140.0030.00516.82
8.0.130.0030.00313.39
8.0.120.0060.00316.83
8.0.110.0000.00816.90
8.0.100.0000.00716.74
8.0.90.0070.00016.77
8.0.80.0070.01116.88
8.0.70.0070.00016.73
8.0.60.0070.00016.90
8.0.50.0070.00016.89
8.0.30.0110.01017.31
8.0.20.0120.00617.40
8.0.10.0050.00317.03
8.0.00.0120.00816.70
7.4.330.0000.00516.75
7.4.320.0040.00416.58
7.4.300.0000.00716.56
7.4.290.0000.00716.60
7.4.280.0030.00616.54
7.4.270.0070.00016.52
7.4.260.0070.00016.43
7.4.250.0000.00716.47
7.4.240.0040.00316.56
7.4.230.0000.00716.58
7.4.220.0100.01416.70
7.4.210.0090.00916.58
7.4.200.0000.00716.61
7.4.160.0110.00416.58
7.4.150.0160.00617.40
7.4.140.0120.00717.86
7.4.130.0090.00916.48
7.4.120.0050.01216.47
7.4.110.0030.01316.65
7.4.100.0130.01016.52
7.4.90.0030.01316.58
7.4.80.0070.01019.39
7.4.70.0100.00716.50
7.4.60.0100.00616.54
7.4.50.0040.01516.16
7.4.40.0060.01116.40
7.4.30.0050.01116.30
7.4.00.0040.01114.56
7.3.330.0030.00313.23
7.3.320.0030.00313.29
7.3.310.0000.00716.32
7.3.300.0060.00016.26
7.3.290.0000.00716.23
7.3.280.0090.00816.25
7.3.270.0120.00617.40
7.3.260.0090.00916.31
7.3.240.0150.00616.39
7.3.230.0090.00916.43
7.3.210.0130.00316.42
7.3.200.0130.00719.39
7.3.190.0070.01116.22
7.3.180.0060.00916.29
7.3.170.0080.00816.46
7.3.160.0120.00416.55
7.3.10.0000.01316.58
7.3.00.0060.00616.52
7.2.330.0140.00716.53
7.2.320.0130.00716.71
7.2.310.0150.00316.33
7.2.300.0120.02816.56
7.2.290.0110.00616.33
7.2.130.0040.00916.79
7.2.120.0060.01216.75
7.2.110.0040.01116.64
7.2.100.0090.00316.64
7.2.90.0070.00717.05
7.2.80.0060.01017.12
7.2.70.0030.01016.79
7.2.60.0000.01317.07
7.2.50.0080.00416.93
7.2.40.0090.00617.04
7.2.30.0040.01116.89
7.2.20.0040.00817.02
7.2.10.0030.01116.74
7.2.00.0030.01118.04
7.1.250.0080.00315.66
7.1.100.0040.00918.07
7.1.70.0050.00317.13
7.1.60.0070.01819.27
7.1.50.0120.01216.70
7.1.00.0030.07722.32
7.0.200.0080.00316.70
7.0.60.0070.04021.88
7.0.50.0000.08017.95
7.0.40.0130.03320.26
7.0.30.0270.06320.09
7.0.20.0300.07020.33
7.0.10.0070.09020.07
7.0.00.0070.06020.19
5.6.280.0070.03020.91
5.6.210.0100.03320.60
5.6.200.0000.05318.23
5.6.190.0000.04720.61
5.6.180.0230.03720.50
5.6.170.0170.04020.47
5.6.160.0000.06320.49
5.6.150.0000.05718.14
5.6.140.0000.05718.18
5.6.130.0070.06318.18
5.6.120.0030.05721.00
5.6.110.0100.05320.97
5.6.100.0100.08021.01
5.6.90.0030.04021.13
5.6.80.0170.05320.54
5.5.350.0030.08320.35
5.5.340.0070.04718.08
5.5.330.0130.04720.13
5.5.320.0200.04720.36
5.5.310.0200.04020.27
5.5.300.0130.05318.08
5.5.290.0070.03718.08
5.5.280.0070.05020.77
5.5.270.0130.07720.65
5.5.260.0170.07720.94
5.5.250.0070.06020.50
5.5.240.0170.07320.04

preferences:
52.99 ms | 401 KiB | 5 Q