3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($a, $b, $c) { } $params = array(1,2,3); $t = microtime(true); for($i=0; $i<10000; $i++) call_user_func_array('test', $params); printf("call_user_func: %.6f\n",microtime(true)-$t); $t = microtime(true); for($i=0; $i<10000; $i++) test(...$params); printf("splat operator: %.6f\n",microtime(true)-$t);

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)
7.4.00.0060.01014.95
7.3.120.0000.01814.86
7.3.110.0040.01515.10
7.3.100.0120.00615.07
7.3.90.0120.00314.84
7.3.80.0030.01014.92
7.3.70.0120.00314.87
7.3.60.0030.01314.95
7.3.50.0000.01714.71
7.3.40.0090.00314.68
7.3.30.0030.01414.84
7.3.20.0060.00916.64
7.3.10.0060.00916.48
7.3.00.0070.00916.51
7.2.250.0070.01415.16
7.2.240.0030.01315.04
7.2.230.0030.01314.91
7.2.220.0080.00815.02
7.2.210.0000.01914.88
7.2.200.0060.01314.80
7.2.190.0030.01314.96
7.2.180.0000.01414.79
7.2.170.0060.00615.08
7.2.160.0070.01014.96
7.2.150.0070.01016.67
7.2.140.0030.00717.08
7.2.130.0080.00616.60
7.2.120.0000.01516.70
7.2.110.0050.00916.75
7.2.100.0070.00716.60
7.2.90.0080.01116.76
7.2.80.0060.00916.93
7.2.70.0110.00716.73
7.2.60.0030.01116.84
7.2.50.0030.00716.66
7.2.40.0070.00916.92
7.2.30.0040.00916.82
7.2.20.0050.00916.84
7.2.10.0030.01416.60
7.2.00.0030.01117.67
7.1.330.0040.01515.87
7.1.320.0040.00815.91
7.1.310.0100.01015.61
7.1.300.0120.00615.65
7.1.290.0100.00715.57
7.1.280.0100.00715.71
7.1.270.0030.01015.88
7.1.260.0090.00615.67
7.1.250.0050.01115.57
7.1.240.0040.00715.74
7.1.230.0100.00315.75
7.1.220.0000.01115.73
7.1.210.0000.01815.92
7.1.200.0040.01815.38
7.1.190.0030.01415.65
7.1.180.0000.01515.47
7.1.170.0000.01715.68
7.1.160.0100.00615.41
7.1.150.0060.00915.73
7.1.140.0040.01115.45
7.1.130.0120.00615.61
7.1.120.0060.01215.77
7.1.110.0000.01615.58
7.1.100.0040.01515.89
7.1.90.0040.01215.73
7.1.80.0090.00915.79
7.1.70.0050.00816.35
7.1.60.0050.01417.51
7.1.50.0050.01416.35
7.1.40.0100.00615.79
7.1.30.0030.01015.56
7.1.20.0070.01015.50
7.1.10.0030.01315.78
7.1.00.0070.04119.10
7.0.330.0040.01515.22
7.0.320.0100.00715.34
7.0.310.0040.01515.39
7.0.300.0060.00915.32
7.0.290.0130.00315.60
7.0.280.0070.01015.37
7.0.270.0060.01315.36
7.0.260.0030.01315.44
7.0.250.0070.01015.47
7.0.240.0060.00915.45
7.0.230.0130.00615.67
7.0.220.0030.01215.63
7.0.210.0070.01015.45
7.0.200.0030.00916.01
7.0.190.0080.01215.40
7.0.180.0060.01215.21
7.0.170.0130.00315.49
7.0.160.0110.00715.22
7.0.150.0000.01715.45
7.0.140.0020.04518.71
7.0.130.0000.01015.25
7.0.120.0100.00715.36
7.0.110.0070.01115.51
7.0.100.0070.01015.23
7.0.90.0030.01215.50
7.0.80.0030.01015.26
7.0.70.0040.01115.27
7.0.60.0080.03317.66
7.0.50.0080.03316.56
7.0.40.0110.03516.93
7.0.30.0170.04116.87
7.0.20.0110.03416.79
7.0.10.0100.04016.91
7.0.00.0050.02816.82
5.6.400.0120.01514.16
5.6.390.0030.02614.29
5.6.380.0090.01814.29
5.6.370.0040.02514.57
5.6.360.0000.03014.55
5.6.350.0030.02514.39
5.6.340.0060.02213.92
5.6.330.0030.02214.25
5.6.320.0100.01914.38
5.6.310.0030.02014.31
5.6.300.0120.01814.08
5.6.290.0100.01714.54
5.6.280.0050.06317.64
5.6.270.0040.02114.57
5.6.260.0030.02314.31
5.6.250.0030.02114.43
5.6.240.0040.02114.22
5.6.230.0030.02214.22
5.6.220.0130.01614.28
5.6.210.0080.05517.46
5.6.200.0080.05516.36
5.6.190.0020.04717.65
5.6.180.0170.04017.26
5.6.170.0220.04817.40
5.6.160.0030.06017.30
5.6.150.0070.05716.41
5.6.140.0040.03416.31
5.6.130.0070.05616.14
5.6.120.0070.06017.54
5.6.110.0100.05117.51
5.6.100.0030.03617.61
5.6.90.0050.03117.65
5.6.80.0080.05217.29
5.6.70.0070.01314.08
5.6.60.0060.02314.18
5.6.50.0000.02314.23
5.6.40.0070.02114.26
5.6.30.0070.01814.53
5.6.20.0070.02014.32
5.6.10.0060.01914.45
5.6.00.0060.01814.20
5.5.380.0110.00414.31
5.5.370.0070.00713.84
5.5.360.0070.00714.31
5.5.350.0120.02717.23
5.5.340.0070.03915.86
5.5.330.0050.03216.97
5.5.320.0180.02317.04
5.5.310.0120.02717.17
5.5.300.0010.02615.96
5.5.290.0080.02015.83
5.5.280.0100.03717.47
5.5.270.0060.02817.45
5.5.260.0050.05117.40
5.5.250.0090.04017.27
5.5.240.0150.03917.01
5.5.230.0000.00814.03
5.5.220.0060.00914.17
5.5.210.0030.01014.08
5.5.200.0040.00813.79
5.5.190.0100.00313.70
5.5.180.0000.01314.17
5.5.170.0000.01313.91
5.5.160.0100.00314.13
5.5.150.0100.00314.21
5.5.140.0030.01314.27
5.5.130.0030.01313.77
5.5.120.0040.01114.05
5.5.110.0100.00314.19
5.5.100.0070.00713.98
5.5.90.0070.00714.05
5.5.80.0070.01014.00
5.5.70.0030.01313.81
5.5.60.0040.01414.13
5.5.50.0080.00813.77
5.5.40.0100.00714.16
5.5.30.0030.01214.01
5.5.20.0060.00313.55
5.5.10.0070.00714.12
5.5.00.0030.00613.91
5.4.450.0450.03316.04
5.4.440.0410.03016.08
5.4.430.0510.02516.04
5.4.420.0330.00316.07
5.4.410.0350.00315.99
5.4.400.0330.00215.77
5.4.390.0380.00115.85
5.4.380.0330.00615.88
5.4.370.0350.00215.85
5.4.360.0320.00515.94
5.4.350.0370.00315.89
5.4.340.0070.01812.32
5.4.330.0030.00712.62
5.4.320.0020.02412.57
5.4.310.0050.02012.57
5.4.300.0070.02112.57
5.4.290.0070.02312.56
5.4.280.0080.02012.52
5.4.270.0050.02312.51
5.4.260.0070.02412.52
5.4.250.0040.02312.52
5.4.240.0070.02012.52
5.4.230.0040.02312.51
5.4.220.0040.02312.51
5.4.210.0060.01812.51
5.4.200.0070.02012.51
5.4.190.0030.02212.51
5.4.180.0050.02112.51
5.4.170.0050.02212.51
5.4.160.0050.01812.51
5.4.150.0040.02212.51
5.4.140.0060.02012.35
5.4.130.0060.02112.34
5.4.120.0060.02412.33
5.4.110.0090.01912.33
5.4.100.0100.01612.32
5.4.90.0040.02112.32
5.4.80.0050.02312.32
5.4.70.0040.02012.32
5.4.60.0040.01912.32
5.4.50.0040.02312.32
5.4.40.0070.02012.31
5.4.30.0060.02012.31
5.4.20.0030.02312.31
5.4.10.0070.02012.31
5.4.00.0050.02212.06
5.3.290.0030.04212.80
5.3.280.0070.03612.71
5.3.270.0060.03912.72
5.3.260.0060.03912.71
5.3.250.0070.03612.72
5.3.240.0060.03712.72
5.3.230.0050.03812.71
5.3.220.0060.03612.68
5.3.210.0050.03912.68
5.3.200.0030.03912.68
5.3.190.0060.03712.68
5.3.180.0090.03312.68
5.3.170.0050.03912.66
5.3.160.0050.04612.68
5.3.150.0090.03912.67
5.3.140.0070.03612.66
5.3.130.0060.03812.66
5.3.120.0060.03812.66
5.3.110.0070.03612.66
5.3.100.0060.03612.12
5.3.90.0030.03812.11
5.3.80.0060.03612.09
5.3.70.0020.04112.09
5.3.60.0050.03712.08
5.3.50.0040.03712.02
5.3.40.0050.03712.02
5.3.30.0070.03311.98
5.3.20.0050.03611.79
5.3.10.0050.03611.73
5.3.00.0070.03611.72
5.2.170.0040.0309.22
5.2.160.0030.0309.22
5.2.150.0090.0269.22
5.2.140.0040.0309.21
5.2.130.0040.0289.18
5.2.120.0060.0269.18
5.2.110.0080.0279.19
5.2.100.0060.0279.18
5.2.90.0060.0299.18
5.2.80.0060.0329.18
5.2.70.0030.0319.18
5.2.60.0060.0289.12
5.2.50.0020.0329.10
5.2.40.0050.0279.07
5.2.30.0040.0299.05
5.2.20.0050.0279.04
5.2.10.0060.0268.95
5.2.00.0030.0318.81
5.1.60.0040.0278.09
5.1.50.0050.0268.09
5.1.40.0050.0238.07
5.1.30.0060.0248.42
5.1.20.0060.0248.44
5.1.10.0030.0268.16
5.1.00.0050.0248.17
5.0.50.0020.0226.65
5.0.40.0020.0206.50
5.0.30.0000.0356.32
5.0.20.0020.0216.28
5.0.10.0030.0226.26
5.0.00.0050.0376.25
4.4.90.0030.0224.78
4.4.80.0060.0134.76
4.4.70.0020.0164.75
4.4.60.0020.0164.75
4.4.50.0030.0164.77
4.4.40.0040.0264.71
4.4.30.0000.0214.75
4.4.20.0020.0164.85
4.4.10.0020.0164.85
4.4.00.0050.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0144.67
4.3.90.0040.0144.63
4.3.80.0020.0274.59
4.3.70.0020.0164.63
4.3.60.0010.0174.62
4.3.50.0020.0174.63
4.3.40.0020.0264.54
4.3.30.0020.0173.31
4.3.20.0030.0163.29
4.3.10.0020.0173.24
4.3.00.0000.0237.23

preferences:
41.07 ms | 401 KiB | 5 Q