3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(array &$target, $name, $value) { $target[$name] = $value; } $a = array(); call_user_func_array('f', array($a, 42, 37)); var_dump($a);

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.0100.00616.75
8.3.50.0120.00621.94
8.3.40.0090.00618.72
8.3.30.0100.00319.09
8.3.20.0030.00620.29
8.3.10.0040.00423.65
8.3.00.0080.00020.77
8.2.180.0090.00616.85
8.2.170.0030.01022.96
8.2.160.0030.01020.24
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00420.70
8.2.110.0090.00022.26
8.2.100.0000.01119.16
8.2.90.0060.00317.75
8.2.80.0040.00419.18
8.2.70.0000.00817.93
8.2.60.0060.00318.03
8.2.50.0000.00818.10
8.2.40.0060.00322.34
8.2.30.0000.00818.28
8.2.20.0000.00817.68
8.2.10.0040.00418.09
8.2.00.0000.00717.79
8.1.280.0040.01125.92
8.1.270.0040.00423.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00322.61
8.1.230.0060.00619.09
8.1.220.0080.00017.76
8.1.210.0080.00018.77
8.1.200.0070.00317.22
8.1.190.0060.00217.53
8.1.180.0000.00918.10
8.1.170.0000.00918.50
8.1.160.0050.00221.94
8.1.150.0040.00418.63
8.1.140.0070.00017.49
8.1.130.0000.00717.81
8.1.120.0070.00017.49
8.1.110.0040.00717.37
8.1.100.0030.00517.44
8.1.90.0030.00317.44
8.1.80.0000.00717.41
8.1.70.0000.00717.44
8.1.60.0000.00817.57
8.1.50.0000.00817.42
8.1.40.0000.00817.41
8.1.30.0030.00517.64
8.1.20.0040.00417.61
8.1.10.0080.00017.54
8.1.00.0000.00717.57
8.0.300.0070.00019.73
8.0.290.0060.00316.75
8.0.280.0070.00018.44
8.0.270.0000.00717.38
8.0.260.0000.00617.31
8.0.250.0000.00716.89
8.0.240.0040.00417.02
8.0.230.0070.00017.00
8.0.220.0070.00016.95
8.0.210.0070.00016.93
8.0.200.0030.00317.02
8.0.190.0030.00517.00
8.0.180.0070.00416.87
8.0.170.0000.00816.88
8.0.160.0040.00416.94
8.0.150.0040.00416.86
8.0.140.0000.00716.94
8.0.130.0030.00313.30
8.0.120.0070.00016.80
8.0.110.0000.00716.79
8.0.100.0030.00516.78
8.0.90.0040.00416.78
8.0.80.0130.00916.93
8.0.70.0040.00417.01
8.0.60.0060.00316.86
8.0.50.0050.00216.77
8.0.30.0070.01117.16
8.0.20.0140.00517.40
8.0.10.0040.00417.02
8.0.00.0120.00716.87
7.4.330.0030.00315.07
7.4.320.0000.00616.60
7.4.300.0000.00716.52
7.4.290.0000.00716.43
7.4.280.0060.00316.41
7.4.270.0030.00316.57
7.4.260.0000.00716.48
7.4.250.0040.00416.32
7.4.240.0050.00216.60
7.4.230.0000.00716.68
7.4.220.0090.00916.67
7.4.210.0100.00516.57
7.4.200.0000.00816.57
7.4.190.0040.00416.55
7.4.160.0070.01416.61
7.4.150.0070.01117.40
7.4.140.0140.00717.86
7.4.130.0140.00316.64
7.4.120.0070.01016.51
7.4.110.0060.00916.44
7.4.100.0080.00816.48
7.4.90.0100.00716.57
7.4.80.0080.00816.63
7.4.70.0110.00616.55
7.4.60.0030.01316.40
7.4.50.0060.00316.57
7.4.40.0100.00616.45
7.4.30.0120.00616.47
7.4.00.0060.00915.23
7.3.330.0020.00213.29
7.3.320.0050.00013.44
7.3.310.0000.00716.45
7.3.300.0000.00716.29
7.3.290.0080.00516.34
7.3.280.0080.01216.42
7.3.270.0060.01217.40
7.3.260.0110.00716.45
7.3.250.0080.00916.49
7.3.240.0090.01216.59
7.3.230.0080.00816.46
7.3.210.0060.01216.39
7.3.200.0110.00619.39
7.3.190.0120.00616.45
7.3.180.0060.01016.58
7.3.170.0000.01516.41
7.3.160.0080.00816.46
7.3.120.0070.00714.88
7.3.110.0030.01114.61
7.3.100.0030.00915.05
7.3.90.0030.01314.80
7.3.80.0050.00515.14
7.3.70.0090.00914.95
7.3.60.0070.00714.87
7.3.50.0090.00614.55
7.3.40.0070.00714.72
7.3.30.0060.01014.54
7.3.20.0040.00716.63
7.3.10.0000.01416.48
7.3.00.0100.00316.65
7.2.330.0100.00716.18
7.2.320.0060.01716.54
7.2.310.0060.01116.55
7.2.300.0060.01216.51
7.2.290.0130.01116.33
7.2.240.0000.01215.00
7.2.230.0060.00614.86
7.2.220.0030.00614.99
7.2.210.0030.01414.78
7.2.200.0030.01114.83
7.2.190.0040.00814.93
7.2.180.0000.01314.83
7.2.170.0070.00314.93
7.2.160.0080.00414.99
7.2.150.0070.01016.77
7.2.140.0000.01516.79
7.2.130.0060.00616.73
7.2.120.0100.00316.75
7.2.110.0100.00616.73
7.2.100.0060.00616.95
7.2.90.0100.00616.76
7.2.80.0070.00716.50
7.2.70.0060.00616.82
7.2.60.0100.00716.93
7.2.50.0070.01116.64
7.2.40.0080.00416.56
7.2.30.0070.01116.70
7.2.20.0070.00416.54
7.2.10.0070.01016.77
7.2.00.0100.00518.06
7.1.330.0040.00715.86
7.1.320.0140.00015.66
7.1.310.0060.00915.71
7.1.300.0060.01015.75
7.1.290.0100.00315.80
7.1.280.0060.00615.69
7.1.270.0100.00615.80
7.1.260.0030.01315.67
7.1.250.0060.00915.64
7.1.100.0000.01117.96
7.1.70.0000.00817.08
7.1.60.0100.01319.46
7.1.50.0090.01217.02
7.1.00.0000.08022.51
7.0.200.0000.00816.67
7.0.140.0000.07722.09
7.0.60.0100.08719.84
7.0.50.0070.03717.88
7.0.40.0000.04720.30
7.0.30.0370.07020.33
7.0.20.0270.05020.07
7.0.10.0030.08020.10
7.0.00.0070.09020.16
5.6.280.0030.07021.16
5.6.210.0130.08020.57
5.6.200.0100.06718.17
5.6.190.0070.08020.55
5.6.180.0130.05020.67
5.6.170.0200.03720.54
5.6.160.0070.04720.49
5.6.150.0000.04718.18
5.6.140.0130.06718.27
5.6.130.0000.05718.19
5.6.120.0070.07020.99
5.6.110.0070.07720.89
5.6.100.0000.04320.89
5.6.90.0070.08020.98
5.6.80.0070.07320.38
5.5.350.0070.08320.41
5.5.340.0100.08017.96
5.5.330.0070.04720.35
5.5.320.0330.07320.24
5.5.310.0470.06720.27
5.5.300.0170.07017.97
5.5.290.0070.08318.05
5.5.280.0030.07020.73
5.5.270.0030.08320.76
5.5.260.0070.05320.63
5.5.250.0100.07720.69
5.5.240.0030.07720.05
5.4.450.0200.05337.24
5.4.440.0230.05031.64
5.4.430.0300.04727.12
5.4.420.0300.04725.55
5.4.410.0370.03723.78
5.4.400.0270.04022.00
5.4.390.0400.04021.11
5.4.380.0430.05018.78
5.4.370.0370.05018.59
5.4.360.0530.07318.76
5.4.350.0230.06318.78
5.4.340.0430.05018.55
5.4.320.0050.04112.50
5.4.310.0100.04112.50
5.4.300.0100.04212.51
5.4.290.0090.04312.50
5.4.280.0080.03412.40
5.4.270.0040.03912.40
5.4.260.0060.03912.40
5.4.250.0130.04112.40
5.4.240.0080.04912.40
5.4.230.0070.05112.39
5.4.220.0120.04612.39
5.4.210.0080.04712.39
5.4.200.0090.05012.39
5.4.190.0100.05012.39
5.4.180.0080.03312.39
5.4.170.0090.03712.39
5.4.160.0050.04012.39
5.4.150.0080.03612.39
5.4.140.0050.04112.07
5.4.130.0050.03712.06
5.4.120.0060.03712.02
5.4.110.0050.03912.01
5.4.100.0070.03612.01
5.4.90.0060.03912.01
5.4.80.0080.03612.01
5.4.70.0070.03312.01
5.4.60.0120.04612.01
5.4.50.0070.05312.01
5.4.40.0060.04812.00
5.4.30.0080.04011.99
5.4.20.0060.03811.99
5.4.10.0080.03312.00
5.4.00.0060.03611.48
5.3.290.0100.04112.80
5.3.280.0080.03612.70
5.3.270.0070.04012.72
5.3.260.0070.03812.72
5.3.250.0070.03712.72
5.3.240.0060.03712.71
5.3.230.0050.03912.70
5.3.220.0040.03912.68
5.3.210.0040.04412.68
5.3.200.0070.04312.68
5.3.190.0080.03512.68
5.3.180.0080.03412.67
5.3.170.0080.03512.67
5.3.160.0090.03412.68
5.3.150.0050.03912.67
5.3.140.0060.03612.66
5.3.130.0080.03712.66
5.3.120.0100.03412.66
5.3.110.0070.03812.66
5.3.100.0100.04112.12
5.3.90.0130.04412.10
5.3.80.0080.05112.09
5.3.70.0100.04712.09
5.3.60.0110.04512.08
5.3.50.0100.04512.02
5.3.40.0070.04712.02
5.3.30.0120.04211.97
5.3.20.0060.04811.76
5.3.10.0060.04911.73
5.3.00.0090.04711.71
5.2.170.0060.0409.21
5.2.160.0040.0309.22
5.2.150.0060.0289.22
5.2.140.0040.0319.21
5.2.130.0050.0299.17
5.2.120.0110.0229.18
5.2.110.0040.0329.18
5.2.100.0060.0329.18
5.2.90.0060.0289.17
5.2.80.0080.0329.16
5.2.70.0060.0319.17
5.2.60.0030.0359.13
5.2.50.0050.0309.10
5.2.40.0050.0289.07
5.2.30.0060.0289.04
5.2.20.0040.0299.04
5.2.10.0040.0298.94
5.2.00.0040.0308.80
5.1.60.0040.0248.09
5.1.50.0040.0278.08
5.1.40.0030.0268.06
5.1.30.0020.0308.41
5.1.20.0070.0338.43
5.1.10.0030.0338.16
5.1.00.0030.0298.16
5.0.50.0050.0206.64
5.0.40.0030.0216.49
5.0.30.0020.0346.31
5.0.20.0040.0216.28
5.0.10.0020.0226.25
5.0.00.0050.0316.25
4.4.90.0030.0214.77
4.4.80.0030.0224.75
4.4.70.0040.0204.75
4.4.60.0040.0204.75
4.4.50.0050.0194.77
4.4.40.0050.0304.71
4.4.30.0010.0224.76
4.4.20.0030.0154.85
4.4.10.0010.0224.85
4.4.00.0010.0324.76
4.3.110.0040.0154.67
4.3.100.0030.0164.66
4.3.90.0020.0164.64
4.3.80.0010.0274.59
4.3.70.0020.0174.63
4.3.60.0060.0134.63
4.3.50.0050.0164.63
4.3.40.0050.0244.54
4.3.30.0020.0163.30
4.3.20.0040.0143.29
4.3.10.0060.0213.24
4.3.00.0070.01720.00

preferences:
44.21 ms | 401 KiB | 5 Q