3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); $array[] = array('a'=>1,'b'=>2); $array[] = array('a'=>3,'b'=>4); print_r($array);

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.0110.00316.50
8.3.50.0110.01121.92
8.3.40.0110.00418.40
8.3.30.0070.00719.13
8.3.20.0040.00420.21
8.3.10.0000.00823.65
8.3.00.0000.00819.13
8.2.180.0140.00418.31
8.2.170.0070.00722.96
8.2.160.0060.01120.35
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0140.00026.16
8.2.120.0040.00422.21
8.2.110.0090.00022.16
8.2.100.0080.00317.91
8.2.90.0080.00019.09
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00419.94
8.2.30.0000.00818.07
8.2.20.0000.00717.68
8.2.10.0070.00017.87
8.2.00.0050.00517.59
8.1.280.0160.00325.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.79
8.1.230.0030.00919.15
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0000.00917.39
8.1.180.0120.00018.10
8.1.170.0030.00618.59
8.1.160.0000.00721.91
8.1.150.0000.00718.57
8.1.140.0040.00417.40
8.1.130.0070.00017.73
8.1.120.0040.00417.43
8.1.110.0000.00717.29
8.1.100.0000.01017.28
8.1.90.0080.00017.36
8.1.80.0040.00417.46
8.1.70.0040.00417.36
8.1.60.0000.00817.40
8.1.50.0000.00817.47
8.1.40.0040.00417.36
8.1.30.0030.00517.55
8.1.20.0000.00817.55
8.1.10.0040.00417.36
8.1.00.0000.00917.38
8.0.300.0000.00718.77
8.0.290.0070.00017.18
8.0.280.0070.00018.26
8.0.270.0030.00317.22
8.0.260.0030.00317.20
8.0.250.0040.00416.83
8.0.240.0030.00517.00
8.0.230.0030.00316.86
8.0.220.0070.00016.74
8.0.210.0100.00016.77
8.0.200.0000.00616.89
8.0.190.0040.00416.82
8.0.180.0000.00716.85
8.0.170.0000.00716.86
8.0.160.0050.00216.82
8.0.150.0030.00316.84
8.0.140.0030.00316.77
8.0.130.0000.00613.21
8.0.120.0040.00416.78
8.0.110.0080.00016.70
8.0.100.0040.00416.70
8.0.90.0040.00416.76
8.0.80.0120.00916.88
8.0.70.0070.00016.85
8.0.60.0040.00416.73
8.0.50.0040.00416.88
8.0.30.0080.01017.17
8.0.20.0060.01217.40
8.0.10.0030.00416.88
8.0.00.0100.00916.71
7.4.330.0000.00515.00
7.4.320.0030.00416.44
7.4.300.0000.00616.41
7.4.290.0040.00316.54
7.4.280.0070.00016.52
7.4.270.0030.00416.54
7.4.260.0030.00316.57
7.4.250.0000.00816.41
7.4.240.0020.00516.45
7.4.230.0000.00716.61
7.4.220.0060.00916.63
7.4.210.0040.01016.44
7.4.200.0030.00316.59
7.4.190.0000.00716.68
7.4.160.0050.01016.28
7.4.150.0090.00917.40
7.4.140.0080.00917.86
7.4.130.0160.01916.51
7.4.120.0080.01016.38
7.4.110.0100.00616.58
7.4.100.0150.00616.39
7.4.90.0070.01016.45
7.4.80.0110.00519.39
7.4.70.0100.00616.51
7.4.60.0150.00816.37
7.4.50.0030.00516.34
7.4.40.0070.01022.77
7.4.30.0060.01116.52
7.4.00.0030.00614.89
7.3.330.0060.00013.11
7.3.320.0030.00213.05
7.3.310.0030.00516.25
7.3.300.0040.00416.11
7.3.290.0170.00016.16
7.3.280.0060.01116.20
7.3.270.0110.00617.40
7.3.260.0090.00916.42
7.3.250.0120.00816.47
7.3.240.0150.00816.55
7.3.230.0090.00916.39
7.3.210.0060.01416.21
7.3.200.0100.00616.23
7.3.190.0090.00916.22
7.3.180.0060.00916.30
7.3.170.0160.00016.27
7.3.160.0070.01016.25
7.3.120.0100.00714.86
7.2.330.0120.01016.19
7.2.320.0070.01016.47
7.2.310.0140.00316.63
7.2.300.0130.00316.52
7.2.290.0000.02416.58
7.1.70.0040.00417.13
7.1.60.0000.01119.46
7.1.50.0030.01016.73
7.1.00.0000.07722.48
7.0.200.0260.00014.49
7.0.140.0000.07722.00
7.0.60.0030.08020.09
7.0.50.0030.04017.95
7.0.40.0230.07320.13
7.0.30.0600.05020.15
7.0.20.0230.08020.33
7.0.10.0100.04320.21
7.0.00.0100.08320.06
5.6.280.0070.07020.81
5.6.210.0030.05320.70
5.6.200.0030.04018.18
5.6.190.0130.07720.68
5.6.180.0100.07320.47
5.6.170.0330.06720.51
5.6.160.0000.05320.55
5.6.150.0100.05018.29
5.6.140.0070.08318.15
5.6.130.0230.03318.21
5.6.120.0070.06021.11
5.6.110.0030.06020.99
5.6.100.0030.04020.98
5.6.90.0130.08320.99
5.6.80.0070.08320.52
5.6.70.3600.03320.36
5.5.350.0500.06320.52
5.5.340.0030.05317.99
5.5.330.0030.05720.32
5.5.320.0370.07320.29
5.5.310.0270.06720.33
5.5.300.0000.09017.95
5.5.290.0000.04317.95
5.5.280.0070.05020.86
5.5.270.0070.08320.73
5.5.260.0070.08720.85
5.5.250.0070.08020.61
5.5.240.4170.05020.18
5.4.450.0300.06719.27
5.4.440.0170.08719.31
5.4.430.0200.04319.55
5.4.420.0170.07019.51
5.4.410.0230.05319.41
5.4.400.0130.04319.20
5.4.390.0230.03719.19
5.4.380.0200.07319.19
5.4.370.0130.05318.94
5.4.360.0200.07319.19
5.4.350.0270.04019.09
5.4.340.0200.03718.94
5.4.320.0230.07319.24
5.4.310.0270.07319.15
5.4.300.0370.06319.19
5.4.290.0270.06719.00
5.4.280.0270.04019.08
5.4.270.0200.04718.86
5.4.260.0200.06019.14
5.4.250.0200.04319.05
5.4.240.0300.07018.97
5.4.230.0270.04319.07
5.4.220.0130.08319.05
5.4.210.0230.05319.12
5.4.200.0170.06019.23
5.4.190.0230.05319.07
5.4.180.0270.03019.07
5.4.170.0200.07719.21
5.4.160.0300.05719.11
5.4.150.0200.04319.06
5.4.140.0270.06716.31
5.4.130.0170.04316.45
5.4.120.0230.04016.66
5.4.110.0300.06316.37
5.4.100.0300.06016.55
5.4.90.0170.05016.58
5.4.80.0230.03716.54
5.4.70.0270.07016.44
5.4.60.0200.04716.36
5.4.50.0230.04716.51
5.4.40.0330.06316.52
5.4.30.0330.06016.16
5.4.20.0300.04316.16
5.4.10.0130.04016.53
5.4.00.0270.06015.78
5.3.290.0200.05714.57
5.3.280.0170.06714.66
5.3.270.0130.05314.64
5.3.260.0130.04714.68
5.3.250.0300.04714.62
5.3.240.0230.04314.52
5.3.230.0230.06014.56
5.3.220.0270.06714.67
5.3.210.0230.04314.71
5.3.200.0270.06714.50
5.3.190.0270.06714.55
5.3.180.0270.05314.46
5.3.170.0230.05714.54
5.3.160.0170.06714.55
5.3.150.0270.05014.52
5.3.140.0230.07014.77
5.3.130.0230.03714.54
5.3.120.0300.07014.70
5.3.110.0230.03714.55
5.3.100.0230.06714.19
5.3.90.0230.04713.98
5.3.80.0230.03713.93
5.3.70.0230.04713.94
5.3.60.0200.07314.07
5.3.50.0370.05013.94
5.3.40.0230.06013.85
5.3.30.0230.06713.91
5.3.20.0170.06013.66
5.3.10.0170.04713.56
5.3.00.0170.04313.54
5.2.170.0230.05312.03
5.2.160.0200.04312.03
5.2.150.0230.02712.03
5.2.140.0170.06312.03
5.2.130.0200.05012.03
5.2.120.0130.04312.03
5.2.110.0170.04312.03
5.2.100.0270.03712.03
5.2.90.0130.05312.03
5.2.80.0230.03712.03
5.2.70.0170.06312.03
5.2.60.0230.04312.03
5.2.50.0200.03012.03
5.2.40.0100.04312.03
5.2.30.0170.04312.03
5.2.20.0170.03712.03
5.2.10.0130.05012.03
5.2.00.0130.05712.03
5.1.60.0230.04312.03
5.1.50.0130.05012.03
5.1.40.0270.03712.03
5.1.30.0170.05012.03
5.1.20.0170.04312.03
5.1.10.0170.03312.03
5.1.00.0100.03312.03
5.0.50.0070.02012.03
5.0.40.0030.02712.03
5.0.30.0100.06012.03
5.0.20.0100.03012.03
5.0.10.0100.02712.03
5.0.00.0130.03312.03
4.4.90.0070.03012.03
4.4.80.0100.02312.03
4.4.70.0170.01312.03
4.4.60.0100.02012.03
4.4.50.0070.02712.03
4.4.40.0030.04312.03
4.4.30.0070.04012.03
4.4.20.0170.02712.03
4.4.10.0100.01312.03
4.4.00.0030.05312.03
4.3.110.0070.02712.03
4.3.100.0070.02712.03
4.3.90.0100.02012.03
4.3.80.0070.04712.03
4.3.70.0100.01712.03
4.3.60.0100.03012.03
4.3.50.0070.02712.03
4.3.40.0100.03712.03
4.3.30.0070.02012.03
4.3.20.0030.04012.03
4.3.10.0000.02312.03
4.3.00.0030.03312.03

preferences:
51.05 ms | 401 KiB | 5 Q