3v4l.org

run code in 300+ PHP versions simultaneously
<?php function takes_array($input) { $a=$input; print_r($a); } takes_array(array(1,2,3,4,5,"rld"));

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.01018.43
8.3.50.0100.00521.95
8.3.40.0070.00718.76
8.3.30.0070.00718.92
8.3.20.0040.00420.07
8.3.10.0050.00323.53
8.3.00.0040.00422.39
8.2.180.0140.00016.50
8.2.170.0100.01022.96
8.2.160.0140.00022.04
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00319.23
8.2.110.0060.00322.15
8.2.100.0040.00717.66
8.2.90.0060.00319.23
8.2.80.0070.00017.97
8.2.70.0040.00417.50
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0040.00418.09
8.2.30.0040.00417.98
8.2.20.0000.00717.69
8.2.10.0030.00619.46
8.2.00.0050.00317.60
8.1.280.0140.00325.92
8.1.270.0060.00323.92
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.83
8.1.230.0090.00319.16
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00617.23
8.1.190.0050.00317.53
8.1.180.0040.00418.10
8.1.170.0000.00818.52
8.1.160.0000.00821.88
8.1.150.0070.00018.51
8.1.140.0050.00317.43
8.1.130.0030.00517.80
8.1.120.0030.00417.30
8.1.110.0030.00617.32
8.1.100.0030.00317.42
8.1.90.0050.00217.32
8.1.80.0000.00717.29
8.1.70.0030.00317.37
8.1.60.0040.00417.62
8.1.50.0040.00417.48
8.1.40.0030.00717.39
8.1.30.0000.00817.56
8.1.20.0040.00417.70
8.1.10.0000.00717.37
8.1.00.0000.00817.33
8.0.300.0000.00818.77
8.0.290.0050.00317.16
8.0.280.0030.00318.41
8.0.270.0000.00817.06
8.0.260.0030.00316.82
8.0.250.0030.00316.88
8.0.240.0070.00016.78
8.0.230.0000.00716.88
8.0.220.0030.00316.81
8.0.210.0030.00316.70
8.0.200.0030.00316.94
8.0.190.0000.00716.90
8.0.180.0080.00016.74
8.0.170.0030.00616.85
8.0.160.0070.00016.82
8.0.150.0000.00716.78
8.0.140.0030.00516.78
8.0.130.0060.00013.25
8.0.120.0040.00416.78
8.0.110.0080.00016.88
8.0.100.0040.00416.84
8.0.90.0050.00216.66
8.0.80.0030.01216.70
8.0.70.0000.00716.79
8.0.60.0070.00016.64
8.0.50.0000.00816.76
8.0.30.0070.01117.02
8.0.20.0100.00917.40
8.0.10.0070.00016.89
8.0.00.0100.01116.65
7.4.330.0050.00015.09
7.4.320.0000.00616.43
7.4.300.0050.00216.58
7.4.290.0070.00016.47
7.4.280.0000.00716.56
7.4.270.0030.00316.45
7.4.260.0070.00016.47
7.4.250.0040.00416.47
7.4.240.0040.00316.55
7.4.230.0040.00416.57
7.4.220.0090.00916.60
7.4.210.0090.00616.54
7.4.200.0030.00316.60
7.4.190.0030.00316.70
7.4.160.0070.00716.56
7.4.150.0100.00717.40
7.4.140.0130.01117.86
7.4.130.0090.01116.45
7.4.120.0100.00716.53
7.4.110.0050.01116.38
7.4.100.0110.00616.55
7.4.90.0140.00516.38
7.4.80.0130.00516.65
7.4.70.0120.00616.36
7.4.60.0000.01616.36
7.4.50.0080.00016.54
7.4.40.0000.01622.77
7.4.30.0130.00316.50
7.4.00.0090.00714.98
7.3.330.0050.00013.15
7.3.320.0000.00613.14
7.3.310.0030.00316.29
7.3.300.0030.00316.36
7.3.290.0120.00616.23
7.3.280.0110.00716.30
7.3.270.0110.00717.40
7.3.260.0070.00916.58
7.3.250.0120.01016.24
7.3.240.0130.00416.30
7.3.230.0130.00316.39
7.3.210.0070.01016.56
7.3.200.0150.00319.39
7.3.190.0070.01116.30
7.3.180.0100.00616.45
7.3.170.0070.01016.34
7.3.160.0140.00316.43
7.3.120.0090.00514.65
7.3.110.0140.00314.58
7.3.100.0000.01714.95
7.3.90.0040.01414.47
7.3.80.0030.01014.87
7.3.70.0030.01014.73
7.3.60.0000.00814.81
7.3.50.0080.00314.77
7.3.40.0060.00914.71
7.3.30.0120.00014.54
7.3.20.0070.00716.49
7.3.10.0150.00016.80
7.3.00.0030.01016.46
7.2.330.0100.00716.58
7.2.320.0120.00616.22
7.2.310.0100.01016.16
7.2.300.0140.00316.66
7.2.290.0150.00816.59
7.2.250.0060.01314.81
7.2.240.0130.00614.86
7.2.230.0100.01014.96
7.2.220.0070.01015.02
7.2.210.0000.01314.73
7.2.200.0060.00315.01
7.2.190.0030.01414.89
7.2.180.0100.00614.46
7.2.170.0070.01014.96
7.2.60.0060.00916.91
7.1.330.0040.01115.73
7.1.320.0040.00715.65
7.1.310.0040.01215.61
7.1.300.0000.01315.78
7.1.290.0120.00015.86
7.1.280.0040.01215.61
7.1.270.0150.00015.75
7.1.260.0040.00715.95
7.1.200.0080.00315.75
7.1.100.0030.00717.98
7.1.70.0000.00916.89
7.1.60.0000.01417.30
7.1.50.0170.00317.04
7.1.00.0030.07722.48
7.0.200.0030.01216.73
7.0.140.0000.07022.16
7.0.60.0070.07019.93
7.0.50.0130.05717.81
7.0.40.0000.05320.40
7.0.30.0330.05020.23
7.0.20.0330.08020.12
7.0.10.0200.04020.19
7.0.00.0130.07720.24
5.6.280.0100.06721.12
5.6.210.0100.08020.56
5.6.200.0130.04318.19
5.6.190.0070.04320.61
5.6.180.3930.03720.34
5.6.170.0330.07020.55
5.6.160.0070.04320.51
5.6.150.0100.07018.16
5.6.140.0070.08018.21
5.6.130.0170.07018.18
5.6.120.0100.06320.96
5.6.110.0030.08720.99
5.6.100.0070.05320.97
5.6.90.0100.08721.00
5.6.80.0170.05720.39
5.6.70.3370.03320.38
5.5.350.0000.03320.47
5.5.340.0030.03717.99
5.5.330.0070.08020.27
5.5.320.0100.07720.35
5.5.310.0230.08320.27
5.5.300.0030.04017.98
5.5.290.0070.07317.92
5.5.280.0100.05720.64
5.5.270.0070.07720.75
5.5.260.0100.05020.72
5.5.250.0100.05320.49
5.5.240.0070.08720.19
5.4.450.0170.03319.31
5.4.440.0430.04319.64
5.4.430.0030.03019.52
5.4.420.0200.06319.40
5.4.410.0130.05318.91
5.4.400.0100.05018.53
5.4.390.0100.06018.79
5.4.380.0130.05318.51
5.4.370.0100.05718.84
5.4.360.0130.05018.58
5.4.350.0200.04718.57
5.4.340.0130.05018.78
5.4.320.0050.03712.51
5.4.310.0080.03612.50
5.4.300.0020.04312.50
5.4.290.0030.04112.50
5.4.280.0050.04612.39
5.4.270.0070.04312.39
5.4.260.0070.03612.39
5.4.250.0060.04012.39
5.4.240.0070.03812.40
5.4.230.0030.04012.39
5.4.220.0070.03812.39
5.4.210.0060.04212.39
5.4.200.0080.03412.39
5.4.190.0090.03212.38
5.4.180.0060.04212.39
5.4.170.0190.04712.38
5.4.160.0220.03712.37
5.4.150.0170.04512.37
5.4.140.0130.04712.05
5.4.130.0180.04212.04
5.4.120.0150.04412.00
5.4.110.0140.04812.00
5.4.100.0130.04811.99
5.4.90.0280.06611.99
5.4.80.0170.04811.99
5.4.70.0190.04311.99
5.4.60.0120.04811.99
5.4.50.0190.04611.98
5.4.40.0180.04411.97
5.4.30.0230.07811.96
5.4.20.0260.07111.97
5.4.10.0170.04711.97
5.4.00.0130.04711.46
5.3.290.0060.04012.80
5.3.280.0110.03412.71
5.3.270.0170.04512.72
5.3.260.0240.05512.72
5.3.250.0190.05512.72
5.3.240.0220.06012.72
5.3.230.0540.11812.71
5.3.220.0210.05212.68
5.3.210.0190.05212.68
5.3.200.0240.04812.68
5.3.190.0360.09812.68
5.3.180.0240.04612.67
5.3.170.0220.04512.67
5.3.160.0270.05012.68
5.3.150.0170.05812.68
5.3.140.0170.04712.66
5.3.130.0370.09312.66
5.3.120.0220.04212.66
5.3.110.0200.04412.66
5.3.100.0140.04912.12
5.3.90.0170.04412.10
5.3.80.0150.04512.08
5.3.70.0310.09212.08
5.3.60.0180.04412.06
5.3.50.0130.04712.02
5.3.40.0180.04412.02
5.3.30.0140.04411.99
5.3.20.0170.07311.77
5.3.10.0190.04111.72
5.3.00.0130.04511.71
5.2.170.0130.0389.22
5.2.160.0180.0319.21
5.2.150.0090.0379.21
5.2.140.0150.0329.22
5.2.130.0140.0369.18
5.2.120.0310.0779.17
5.2.110.0130.0359.18
5.2.100.0170.0329.18
5.2.90.0220.0589.18
5.2.80.0120.0359.16
5.2.70.0110.0389.17
5.2.60.0130.0359.12
5.2.50.0110.0389.09
5.2.40.0130.0369.06
5.2.30.0140.0359.04
5.2.20.0130.0349.04
5.2.10.0150.0348.93
5.2.00.0150.0318.79
5.1.60.0110.0308.07
5.1.50.0100.0318.07
5.1.40.0120.0288.06
5.1.30.0140.0298.40
5.1.20.0090.0358.43
5.1.10.0090.0388.15
5.1.00.0170.0278.14
5.0.50.0110.0246.63
5.0.40.0080.0246.48
5.0.30.0350.0726.30
5.0.20.0080.0256.27
5.0.10.0070.0266.24
5.0.00.0070.0376.24
4.4.90.0090.0174.78
4.4.80.0090.0164.75
4.4.70.0070.0184.75
4.4.60.0190.0374.75
4.4.50.0100.0144.77
4.4.40.0070.0284.71
4.4.30.0050.0204.76
4.4.20.0070.0184.84
4.4.10.0050.0204.85
4.4.00.0080.0284.76
4.3.110.0050.0194.67
4.3.100.0090.0154.66
4.3.90.0040.0204.63
4.3.80.0040.0304.58
4.3.70.0040.0204.63
4.3.60.0070.0174.63
4.3.50.0080.0164.62
4.3.40.0040.0304.54
4.3.30.0040.0193.30
4.3.20.0070.0163.29
4.3.10.0060.0193.26
4.3.00.0030.01713.36

preferences:
72.93 ms | 401 KiB | 5 Q