3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all = array(array("class"=>array("peter","15","male"),array("mary","24","female"),array("jason","22","male"))); print_r($all);

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.0000.01516.38
8.3.50.0120.01022.85
8.3.40.0070.01018.68
8.3.30.0110.00618.92
8.3.20.0000.00720.29
8.3.10.0080.00023.36
8.3.00.0030.00519.25
8.2.180.0120.00616.63
8.2.170.0140.00722.96
8.2.160.0030.01020.28
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0110.00326.16
8.2.120.0040.00421.16
8.2.110.0090.00020.35
8.2.100.0030.00717.78
8.2.90.0000.00819.13
8.2.80.0030.00617.97
8.2.70.0030.00717.63
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0000.00919.76
8.2.30.0080.00017.86
8.2.20.0080.00017.52
8.2.10.0000.00718.04
8.2.00.0050.00217.54
8.1.280.0100.01025.92
8.1.270.0060.00323.96
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00421.99
8.1.230.0040.00720.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0030.00517.00
8.1.180.0030.00618.10
8.1.170.0060.00318.55
8.1.160.0040.00421.93
8.1.150.0000.00718.86
8.1.140.0000.00717.36
8.1.130.0030.00317.73
8.1.120.0070.00017.38
8.1.110.0050.00217.41
8.1.100.0040.00417.35
8.1.90.0030.00417.41
8.1.80.0000.00717.43
8.1.70.0030.00317.32
8.1.60.0060.00317.39
8.1.50.0040.00417.41
8.1.40.0000.00717.46
8.1.30.0050.00317.59
8.1.20.0000.00717.64
8.1.10.0070.00017.44
8.1.00.0030.00517.27
8.0.300.0000.00718.77
8.0.290.0000.00716.58
8.0.280.0000.00718.24
8.0.270.0030.00317.17
8.0.260.0000.00617.10
8.0.250.0000.00716.84
8.0.240.0030.00316.78
8.0.230.0040.00416.72
8.0.220.0030.00316.68
8.0.210.0070.00016.70
8.0.200.0000.00716.75
8.0.190.0070.00016.88
8.0.180.0000.00716.85
8.0.170.0080.00016.82
8.0.160.0070.00016.71
8.0.150.0050.00316.75
8.0.140.0000.00816.68
8.0.130.0000.00513.23
8.0.120.0080.00016.79
8.0.110.0050.00316.88
8.0.100.0080.00016.76
8.0.90.0000.00716.78
8.0.80.0060.00916.74
8.0.70.0050.00216.59
8.0.60.0000.00816.88
8.0.50.0040.00416.78
8.0.30.0160.00917.08
8.0.20.0070.01217.40
8.0.10.0030.00616.95
8.0.00.0130.00416.73
7.4.330.0060.00015.07
7.4.320.0060.00016.29
7.4.300.0060.00016.48
7.4.290.0000.00716.50
7.4.280.0050.00316.43
7.4.270.0000.00716.42
7.4.260.0070.00016.37
7.4.250.0030.00516.44
7.4.240.0050.00216.50
7.4.230.0070.00016.45
7.4.220.0120.00616.54
7.4.210.0000.02416.47
7.4.200.0040.00416.35
7.4.160.0060.01016.17
7.4.150.0150.00917.40
7.4.140.0110.00617.86
7.4.130.0110.00816.45
7.4.120.0110.00916.37
7.4.110.0030.01316.59
7.4.100.0110.00716.41
7.4.90.0180.00016.39
7.4.80.0050.01619.39
7.4.70.0100.00616.45
7.4.60.0060.01216.27
7.4.50.0050.00316.01
7.4.40.0130.00516.26
7.4.30.0060.01016.53
7.4.00.0060.00914.50
7.3.330.0020.00212.89
7.3.320.0000.00512.96
7.3.310.0000.00716.17
7.3.300.0000.00716.11
7.3.290.0060.01216.18
7.3.280.0090.00716.16
7.3.270.0000.01717.40
7.3.260.0160.00416.39
7.3.250.0060.01116.27
7.3.240.0120.00816.13
7.3.230.0140.00316.39
7.3.210.0130.00316.46
7.3.200.0060.00919.39
7.3.190.0160.00616.15
7.3.180.0120.00316.26
7.3.170.0110.00416.27
7.3.160.0090.00616.24
7.3.10.0040.01116.48
7.3.00.0080.00716.12
7.2.330.0110.00616.43
7.2.320.0110.00616.53
7.2.310.0070.01016.18
7.2.300.0160.00616.52
7.2.290.0060.00916.58
7.2.130.0010.01216.51
7.2.120.0060.00516.70
7.2.110.0070.00716.48
7.2.100.0110.00516.72
7.2.90.0060.01016.75
7.2.80.0040.00616.71
7.2.70.0050.00716.63
7.2.60.0040.00916.68
7.2.50.0060.00716.49
7.2.40.0030.01116.41
7.2.30.0070.00816.83
7.2.20.0090.00716.77
7.2.10.0070.00516.54
7.2.00.0020.01116.70
7.1.250.0060.00915.56
7.1.200.0030.00915.65
7.1.70.0080.00517.18
7.1.60.0110.01119.40
7.1.50.0070.01416.89
7.1.00.0000.08022.33
7.0.200.0030.00716.48
7.0.140.0070.07021.95
7.0.60.0100.04319.94
7.0.50.0000.06017.82
7.0.40.0070.05720.02
7.0.30.0530.07320.24
7.0.20.0200.04020.22
7.0.10.0030.04720.24
7.0.00.0000.05020.08
5.6.280.0000.07720.92
5.6.210.0170.07020.70
5.6.200.0070.03718.20
5.6.190.0070.05720.52
5.6.180.0300.03720.47
5.6.170.0200.04020.50
5.6.160.0030.04720.66
5.6.150.0030.04018.18
5.6.140.0130.06318.15
5.6.130.0100.04718.23
5.6.120.0070.08720.98
5.6.110.0170.06021.13
5.6.100.0100.08021.08
5.6.90.0000.09021.11
5.6.80.0000.05720.52
5.6.70.3800.04320.48
5.5.350.0100.06720.43
5.5.340.0070.08317.98
5.5.330.0130.05020.29
5.5.320.0400.07320.21
5.5.310.0330.05320.37
5.5.300.0200.06717.98
5.5.290.0130.08017.98
5.5.280.0030.08320.97
5.5.270.0070.04020.73
5.5.260.0100.06320.93
5.5.250.0100.05720.60
5.5.240.0070.06720.15
5.4.450.0900.03319.52
5.4.440.0370.05019.30
5.4.430.0270.05019.41
5.4.420.0370.04319.45
5.4.410.0330.04319.36
5.4.400.0470.03719.17
5.4.390.0270.04718.87
5.4.380.0370.06018.76
5.4.370.0500.05018.61
5.4.360.0500.04718.46
5.4.350.0570.04318.61
5.4.340.0430.05318.73
5.4.320.0090.03812.48
5.4.310.0030.04012.48
5.4.300.0090.03512.48
5.4.290.0080.03912.48
5.4.280.0070.03712.38
5.4.270.0060.03812.37
5.4.260.0070.03912.37
5.4.250.0110.03312.38
5.4.240.0080.03512.37
5.4.230.0090.03612.36
5.4.220.0050.03712.36
5.4.210.0070.03812.37
5.4.200.0110.03512.37
5.4.190.0050.03712.36
5.4.180.0070.04412.36
5.4.170.0040.03712.37
5.4.160.0080.04112.37
5.4.150.0080.04112.36
5.4.140.0070.04312.05
5.4.130.0080.03812.04
5.4.120.0080.03611.99
5.4.110.0030.03711.99
5.4.100.0120.03511.99
5.4.90.0070.04111.99
5.4.80.0080.03511.99
5.4.70.0060.03411.98
5.4.60.0090.03211.98
5.4.50.0070.03511.99
5.4.40.0100.03011.98
5.4.30.0090.03411.97
5.4.20.0050.03611.98
5.4.10.0070.03511.97
5.4.00.0080.03611.46
5.3.290.0090.03712.80
5.3.280.0050.03912.71
5.3.270.0070.03712.73
5.3.260.0100.03612.72
5.3.250.0090.03412.72
5.3.240.0090.03512.72
5.3.230.0040.04012.70
5.3.220.0090.04212.68
5.3.210.0100.04612.68
5.3.200.0070.03512.68
5.3.190.0080.03512.68
5.3.180.0080.04412.67
5.3.170.0080.03312.67
5.3.160.0060.03512.67
5.3.150.0090.04012.67
5.3.140.0120.03712.66
5.3.130.0090.03812.65
5.3.120.0070.04112.66
5.3.110.0090.03612.66
5.3.100.0070.03612.12
5.3.90.0070.03512.09
5.3.80.0070.04612.08
5.3.70.0090.03612.08
5.3.60.0040.04112.06
5.3.50.0070.03512.01
5.3.40.0070.03612.01
5.3.30.0080.03311.97
5.3.20.0110.03211.75
5.3.10.0030.03911.72
5.3.00.0050.03611.70
5.2.170.0040.0319.20
5.2.160.0100.0289.20
5.2.150.0060.0309.20
5.2.140.0040.0319.20
5.2.130.0050.0329.16
5.2.120.0050.0279.16
5.2.110.0060.0289.17
5.2.100.0080.0299.17
5.2.90.0050.0369.16
5.2.80.0120.0249.16
5.2.70.0070.0349.16
5.2.60.0040.0319.11
5.2.50.0070.0289.08
5.2.40.0040.0299.06
5.2.30.0040.0309.04
5.2.20.0080.0279.02
5.2.10.0070.0298.93
5.2.00.0060.0348.79
5.1.60.0060.0238.06
5.1.50.0070.0258.05
5.1.40.0050.0288.04
5.1.30.0040.0288.39
5.1.20.0060.0338.41
5.1.10.0040.0328.13
5.1.00.0050.0268.14
5.0.50.0020.0226.61
5.0.40.0050.0186.47
5.0.30.0050.0376.29
5.0.20.0060.0186.25
5.0.10.0040.0256.23
5.0.00.0030.0326.23
4.4.90.0030.0214.78
4.4.80.0040.0234.76
4.4.70.0040.0154.75
4.4.60.0030.0164.76
4.4.50.0010.0174.77
4.4.40.0030.0254.70
4.4.30.0050.0144.76
4.4.20.0020.0164.84
4.4.10.0050.0134.85
4.4.00.0050.0234.76
4.3.110.0080.0114.67
4.3.100.0040.0204.67
4.3.90.0060.0154.63
4.3.80.0030.0314.58
4.3.70.0030.0204.63
4.3.60.0050.0184.63
4.3.50.0050.0184.63
4.3.40.0050.0264.54
4.3.30.0030.0153.28
4.3.20.0030.0193.25
4.3.10.0050.0203.22
4.3.00.0100.01315.63

preferences:
40.11 ms | 401 KiB | 5 Q