3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function getB() { return new B(); } } class B { public function foo($value) { return sprintf('Hello %s!', $value); } } $arrCallBack = array ( 'getB', 'foo' => array('Fridolin'), ); $mixValue = new A(); foreach ($arrCallBack as $strMethod => $arrParameterList) { if (is_array($arrParameterList) && count($arrParameterList)) { $mixValue = call_user_func_array(array($mixValue, $strMethod), $arrParameterList); } else { $mixValue = $mixValue->{$arrParameterList}(); } } var_dump($mixValue);

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.0130.00318.53
8.3.50.0130.00222.11
8.3.40.0110.00418.76
8.3.30.0140.00018.70
8.3.20.0030.00318.73
8.3.10.0080.00021.09
8.3.00.0070.00021.73
8.2.180.0140.00416.75
8.2.170.0180.00322.96
8.2.160.0140.00020.43
8.2.150.0030.00624.18
8.2.140.0080.00824.66
8.2.130.0070.00026.16
8.2.120.0050.00221.05
8.2.110.0060.00320.24
8.2.100.0040.00817.84
8.2.90.0070.00019.40
8.2.80.0030.00517.97
8.2.70.0040.00417.48
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0000.00818.28
8.2.30.0030.00619.75
8.2.20.0070.00017.62
8.2.10.0080.00017.68
8.2.00.0050.00317.67
8.1.280.0130.01025.92
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0090.00022.52
8.1.230.0060.00620.98
8.1.220.0030.00518.77
8.1.210.0040.00418.98
8.1.200.0060.00317.35
8.1.190.0030.00517.53
8.1.180.0000.00918.10
8.1.170.0000.00818.41
8.1.160.0080.00018.79
8.1.150.0040.00418.51
8.1.140.0000.00817.45
8.1.130.0040.00417.73
8.1.120.0030.00317.46
8.1.110.0000.00817.43
8.1.100.0030.00417.35
8.1.90.0030.00317.49
8.1.80.0000.00717.38
8.1.70.0040.00417.44
8.1.60.0050.00317.58
8.1.50.0040.00417.46
8.1.40.0020.00517.40
8.1.30.0030.00517.63
8.1.20.0090.00017.69
8.1.10.0070.00017.54
8.1.00.0060.00617.38
8.0.300.0070.00019.81
8.0.290.0040.00416.93
8.0.280.0000.00718.37
8.0.270.0030.00317.17
8.0.260.0000.00816.68
8.0.250.0030.00516.91
8.0.240.0080.00316.98
8.0.230.0030.00316.89
8.0.220.0000.00816.77
8.0.210.0030.00316.77
8.0.200.0030.00316.80
8.0.190.0040.00416.83
8.0.180.0060.00616.80
8.0.170.0060.00316.82
8.0.160.0040.00416.88
8.0.150.0000.00916.72
8.0.140.0000.00816.82
8.0.130.0030.00313.36
8.0.120.0060.00316.87
8.0.110.0020.00516.91
8.0.100.0040.00416.77
8.0.90.0040.00416.79
8.0.80.0060.01316.85
8.0.70.0000.00716.82
8.0.60.0000.00716.91
8.0.50.0020.00516.82
8.0.30.0110.00817.16
8.0.20.0090.00917.40
8.0.10.0040.00417.00
8.0.00.0110.00616.71
7.4.330.0030.00314.76
7.4.320.0050.00216.49
7.4.300.0000.00616.65
7.4.290.0000.00716.50
7.4.280.0030.00516.39
7.4.270.0040.00416.48
7.4.260.0000.00513.35
7.4.250.0000.00816.46
7.4.240.0070.00016.50
7.4.230.0030.00516.66
7.4.220.0090.01216.63
7.4.210.0080.00616.59
7.4.200.0000.00716.66
7.4.190.0030.00516.31
7.4.160.0090.00616.63
7.4.150.0110.00617.40
7.4.140.0110.00717.86
7.4.130.0090.01016.47
7.4.120.0050.01216.57
7.4.110.0060.01216.54
7.4.100.0070.01016.46
7.4.90.0180.00316.67
7.4.80.0030.01319.37
7.4.70.0090.00916.39
7.4.60.0030.02016.25
7.4.50.0040.00416.38
7.4.40.0060.00922.27
7.4.30.0060.01016.68
7.4.00.0070.01015.00
7.3.330.0000.00513.27
7.3.320.0050.00013.22
7.3.310.0070.00016.32
7.3.300.0070.00016.30
7.3.290.0040.01216.29
7.3.280.0100.00816.32
7.3.270.0130.00717.40
7.3.260.0120.00918.24
7.3.250.0100.00716.43
7.3.240.0060.01016.68
7.3.230.0070.01316.48
7.3.210.0130.00316.24
7.3.200.0180.00819.39
7.3.190.0040.01116.28
7.3.180.0040.01416.51
7.3.170.0030.01316.59
7.3.160.0090.00616.32
7.3.120.0000.01114.97
7.3.110.0110.00715.09
7.3.100.0070.00714.77
7.3.90.0030.01014.86
7.3.80.0040.00814.84
7.3.70.0080.00814.71
7.3.60.0000.01314.71
7.3.50.0070.00614.58
7.3.40.0070.00714.59
7.3.30.0040.01114.54
7.3.20.0070.00716.59
7.3.10.0070.00416.55
7.3.00.0060.00616.69
7.2.330.0090.00916.77
7.2.320.0130.00516.51
7.2.310.0090.00916.80
7.2.300.0100.00716.68
7.2.290.0030.01516.59
7.2.240.0080.00315.03
7.2.230.0060.01214.61
7.2.220.0070.00314.61
7.2.210.0090.00315.09
7.2.200.0070.00714.93
7.2.190.0000.00915.03
7.2.180.0080.00415.01
7.2.170.0030.01114.99
7.2.160.0060.00614.91
7.2.150.0040.01117.00
7.2.140.0000.01116.88
7.2.130.0030.00716.65
7.2.120.0110.00016.97
7.2.110.0040.00716.99
7.2.100.0090.00616.89
7.2.90.0040.00816.64
7.2.80.0030.01316.74
7.2.70.0040.00717.02
7.2.60.0070.00717.02
7.2.50.0060.00616.82
7.2.40.0060.00916.71
7.2.30.0060.00617.07
7.2.20.0040.01116.97
7.2.10.0060.00317.00
7.2.00.0070.00718.18
7.1.330.0100.00315.57
7.1.320.0060.00915.57
7.1.310.0060.00915.64
7.1.300.0060.00615.87
7.1.290.0030.00715.62
7.1.280.0060.00615.34
7.1.270.0030.01215.48
7.1.260.0110.00415.75
7.1.250.0070.00715.75
7.1.200.0030.00615.90
7.1.100.0030.01118.16
7.1.70.0060.01317.02
7.1.60.0000.01617.29
7.1.50.0070.00716.66
7.1.40.0030.00716.47
7.1.30.0040.01816.76
7.1.20.0160.00916.70
7.1.10.0040.00916.50
7.1.00.0080.00016.67
7.0.200.0050.00516.78
7.0.190.0000.01216.77
7.0.180.0070.00716.29
7.0.170.0070.00516.35
7.0.160.0080.00516.45
7.0.150.0090.00416.38
7.0.140.0130.00016.41
7.0.130.0050.00916.32
7.0.120.0030.01016.71
7.0.110.0070.00716.46
7.0.100.0080.00416.42
7.0.90.0060.00916.34
7.0.80.0100.00316.51
7.0.70.0080.00516.32
7.0.60.0060.00616.33
7.0.50.0120.00416.43
7.0.40.0070.00715.21
7.0.30.0000.01215.21
7.0.20.0070.00715.21
7.0.10.0070.01115.21
7.0.00.0040.01215.21
5.6.300.0070.04720.91
5.6.290.0100.08920.67
5.6.280.0030.05021.00
5.6.270.0000.05421.07
5.6.260.0100.06620.89
5.6.250.0070.04120.99
5.6.240.0100.04320.99
5.6.230.0070.04520.80
5.6.220.0100.03820.88
5.6.210.0030.04221.05
5.6.200.0040.05020.96
5.6.190.0090.04020.76
5.6.180.0130.03220.84
5.6.170.0030.04420.86
5.6.160.0150.03320.93
5.6.150.0060.05021.02
5.6.140.0000.04820.98
5.6.130.0000.04821.05
5.6.120.0090.05220.98
5.6.110.0030.05520.98
5.6.100.0000.07520.91
5.6.90.0040.04620.71
5.6.80.0000.05420.14
5.6.70.0040.04620.39
5.6.60.0040.05020.32
5.6.50.0030.04820.16
5.6.40.0000.05120.25
5.6.30.0030.05220.35
5.6.20.0000.05620.29
5.6.10.0000.04920.38
5.6.00.0030.04620.18
5.5.380.0030.04017.48
5.5.370.0040.05017.57
5.5.360.0000.04617.61
5.5.350.0070.05917.52
5.5.340.0030.04418.06
5.5.330.0100.04718.11
5.5.320.0120.04717.84
5.5.310.0000.04718.00
5.5.300.0030.04618.09
5.5.290.0030.04517.74
5.5.280.0000.04417.69
5.5.270.0030.07818.04
5.5.260.0030.04518.05
5.5.250.0030.04417.66
5.5.240.0030.06117.42
5.5.230.0040.05317.12
5.5.220.0130.05117.46
5.5.210.0000.04417.41
5.5.200.0070.04417.47
5.5.190.0070.04417.45
5.5.180.0120.03317.38
5.5.160.0030.05817.05
5.5.150.0030.04517.52
5.5.140.0030.04217.36
5.5.130.0070.03517.18
5.5.120.0000.04417.37
5.5.110.0040.04017.43
5.5.100.0000.04217.35
5.5.90.0060.04017.34
5.5.80.0100.03617.35
5.5.70.0000.04617.34
5.5.60.0000.04216.95
5.5.50.0100.03817.36
5.5.40.0070.03617.33
5.5.30.0030.04317.00
5.5.20.0000.04617.32
5.5.10.0030.04117.32
5.5.00.0040.05717.36
5.4.450.0030.04319.31
5.4.440.0150.03719.27
5.4.430.0030.04419.39
5.4.420.0060.04019.52
5.4.410.0060.06519.17
5.4.400.0040.04318.98
5.4.390.0060.03719.18
5.4.380.0070.04418.92
5.4.370.0090.03619.11
5.4.360.0090.03419.20
5.4.350.0100.03619.06
5.4.340.0070.04019.03
5.4.320.0060.03618.98
5.4.310.0100.03619.20
5.4.300.0000.04618.98
5.4.290.0000.05119.20
5.4.280.0040.04218.98
5.4.270.0040.03919.20
5.4.260.0060.03818.94
5.4.250.0160.03219.20
5.4.240.0060.04019.06
5.4.230.0070.03619.22
5.4.220.0000.04119.20
5.4.210.0100.03918.97
5.4.200.0030.04219.05
5.4.190.0070.03919.05
5.4.180.0100.03718.91
5.4.170.0000.04418.96
5.4.160.0070.05319.11
5.4.150.0100.03419.06
5.4.140.0100.04316.59
5.4.130.0000.04016.54
5.4.120.0100.02916.67
5.4.110.0120.02716.83
5.4.100.0030.03916.83
5.4.90.0070.03216.80
5.4.80.0210.03616.79
5.4.70.0040.03916.82
5.4.60.0000.04116.75
5.4.50.0030.03816.56
5.4.40.0000.03716.73
5.4.30.0030.03816.70
5.4.20.0000.04116.55
5.4.10.0000.04316.70
5.4.00.0070.03615.85
5.3.290.0000.04415.21
5.3.280.0030.04315.21
5.3.270.0340.03115.21
5.3.260.0070.04915.21
5.3.250.0000.04415.21
5.3.240.0060.03815.21
5.3.230.0070.03215.21
5.3.220.0030.04015.21
5.3.210.0060.03915.21
5.3.200.0040.03915.21
5.3.190.0000.04915.21
5.3.180.0030.04015.21
5.3.170.0060.03815.21
5.3.160.0070.04115.21
5.3.150.0090.03315.21
5.3.140.0040.04015.21
5.3.130.0130.02915.21
5.3.120.0040.04215.21
5.3.110.0030.04015.21
5.3.100.0030.03615.21
5.3.90.0000.04015.21
5.3.80.0070.03315.21
5.3.70.0000.03815.21
5.3.60.0000.04415.21
5.3.50.0030.03715.21
5.3.40.0030.03415.21
5.3.30.0000.03815.21
5.3.20.0000.03815.21
5.3.10.0070.03115.21
5.3.00.0060.03415.21

preferences:
42.7 ms | 401 KiB | 5 Q