3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbData = array(); array_unshift($dbData, array("4", "David", "Somebody")); array_unshift($dbData, array("3", "Carl", "Somebody")); array_unshift($dbData, array("2", "Bert", "Somebody")); array_unshift($dbData, array("1", "David", "Somebody")); $data['data'] = $dbData; header('Content-Type: application/json; charset=utf-8'); print json_encode($data); ?>

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.0030.01216.38
8.3.50.0120.00417.29
8.3.40.0090.00918.89
8.3.30.0090.00618.84
8.3.20.0040.00418.71
8.3.10.0060.00318.69
8.3.00.0040.00419.26
8.2.180.0090.00916.50
8.2.170.0100.01022.96
8.2.160.0000.01421.19
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0170.00026.16
8.2.120.0050.00320.86
8.2.110.0030.00620.44
8.2.100.0070.00417.91
8.2.90.0000.00819.21
8.2.80.0000.00719.21
8.2.70.0040.00417.63
8.2.60.0090.00017.92
8.2.50.0080.00019.35
8.2.40.0000.00918.03
8.2.30.0030.00518.13
8.2.20.0030.00617.63
8.2.10.0000.00717.66
8.2.00.0000.00717.66
8.1.280.0070.00725.92
8.1.270.0090.00024.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0080.00321.94
8.1.230.0080.00420.88
8.1.220.0000.00818.77
8.1.210.0040.00418.98
8.1.200.0000.01017.35
8.1.190.0040.00417.42
8.1.180.0000.00818.10
8.1.170.0040.00418.78
8.1.160.0040.00418.83
8.1.150.0020.00518.48
8.1.140.0050.00217.43
8.1.130.0000.00717.80
8.1.120.0040.00417.49
8.1.110.0000.00717.29
8.1.100.0070.00017.38
8.1.90.0000.00717.35
8.1.80.0000.00717.41
8.1.70.0030.00317.35
8.1.60.0000.00817.54
8.1.50.0000.00717.41
8.1.40.0000.00717.48
8.1.30.0000.00817.59
8.1.20.0000.00717.60
8.1.10.0000.00717.62
8.1.00.0040.00417.57
8.0.300.0080.00019.94
8.0.290.0000.00716.74
8.0.280.0000.00718.39
8.0.270.0040.00417.25
8.0.260.0030.00316.77
8.0.250.0000.00816.87
8.0.240.0030.00317.00
8.0.230.0070.00016.79
8.0.220.0030.00316.87
8.0.210.0050.00516.71
8.0.200.0040.00416.77
8.0.190.0030.00316.77
8.0.180.0080.00416.82
8.0.170.0080.00016.86
8.0.160.0000.00816.91
8.0.150.0000.00816.77
8.0.140.0030.00716.77
8.0.130.0060.00013.25
8.0.120.0070.00016.69
8.0.110.0070.00016.71
8.0.100.0040.00316.68
8.0.90.0040.00416.71
8.0.80.0090.00616.79
8.0.70.0000.00716.76
8.0.60.0030.00316.68
8.0.50.0000.00716.77
8.0.30.0060.01117.09
8.0.20.0080.01317.32
8.0.10.0070.00016.96
8.0.00.0110.01316.63
7.4.330.0000.00512.97
7.4.320.0000.00616.44
7.4.300.0000.00716.53
7.4.290.0000.01116.57
7.4.280.0030.00316.52
7.4.270.0030.00316.42
7.4.260.0030.00313.20
7.4.250.0000.00916.45
7.4.240.0020.00516.46
7.4.230.0000.00716.52
7.4.220.0060.02016.52
7.4.210.0050.00916.49
7.4.200.0000.00716.51
7.4.190.0030.00316.62
7.4.160.0060.00916.52
7.4.150.0030.01516.57
7.4.140.0060.01116.54
7.4.130.0060.01216.52
7.4.120.0070.01216.36
7.4.110.0150.00916.57
7.4.100.0070.01116.33
7.4.90.0080.01116.41
7.4.80.0060.01216.27
7.4.70.0060.01016.45
7.4.60.0090.00616.63
7.4.50.0070.00016.18
7.4.40.0000.01716.36
7.4.30.0100.00716.62
7.4.00.0030.01214.71
7.3.330.0000.00613.14
7.3.320.0070.00013.00
7.3.310.0040.00416.11
7.3.300.0030.00316.25
7.3.290.0150.00316.25
7.3.280.0090.00916.24
7.3.270.0060.01116.59
7.3.260.0140.00216.22
7.3.250.0110.00716.32
7.3.240.0180.00616.56
7.3.230.0070.01016.48
7.3.210.0060.01016.39
7.3.200.0100.01119.39
7.3.190.0100.00716.30
7.3.180.0040.01216.27
7.3.170.0070.01716.56
7.3.160.0120.00316.50
7.3.120.0100.00714.95
7.3.10.0140.00616.17
7.3.00.0150.00616.33
7.2.330.0100.00916.66
7.2.320.0070.01016.63
7.2.310.0130.01016.65
7.2.300.0120.00616.27
7.2.290.0060.01016.57
7.2.130.0130.00616.32
7.2.120.0150.00916.23
7.2.110.0180.01116.36
7.2.100.0000.01416.61
7.2.90.0040.01116.70
7.2.80.0140.00716.28
7.2.70.0110.00816.33
7.2.60.0100.01615.98
7.2.50.0150.00716.37
7.2.40.0150.00716.23
7.2.30.0040.01216.50
7.2.20.0120.00316.31
7.2.10.0100.00316.64
7.2.00.0110.00617.78
7.1.250.0090.00615.13
7.1.100.0040.00418.01
7.1.70.0030.00517.22
7.1.60.0060.01819.40
7.1.50.0000.01416.89
7.1.00.0030.07722.50
7.0.200.0100.01014.87
7.0.140.0030.07322.10
7.0.120.0030.07322.08
7.0.90.0530.07019.86
7.0.80.0870.07020.13
7.0.70.0530.04719.85
7.0.60.0600.07719.98
7.0.50.0600.07020.38
7.0.40.0030.05720.10
7.0.30.0000.08320.14
7.0.20.0130.07320.10
7.0.10.0100.07019.98
7.0.00.0070.08020.07
5.6.280.0030.07321.12
5.6.240.0070.05320.61
5.6.230.0030.05020.59
5.6.220.0070.08320.56
5.6.210.0100.08720.56
5.6.200.0000.08721.08
5.6.190.0100.07021.13
5.6.180.0100.08321.07
5.6.170.0070.08721.11
5.6.160.0070.06321.07
5.6.150.0070.07321.04
5.6.140.0070.05721.05
5.6.130.0170.07021.16
5.6.120.0100.08321.14
5.6.110.0030.09021.16
5.6.100.0070.09021.00
5.6.90.0130.08321.05
5.6.80.0070.05320.40
5.6.70.0070.08320.46
5.6.60.0030.08020.38
5.6.50.0200.06720.34
5.6.40.0100.07020.39
5.6.30.0000.06320.46
5.6.20.0130.07320.36
5.6.10.0000.08020.37
5.6.00.0070.08020.41
5.5.380.0000.08720.46
5.5.370.0100.07720.51
5.5.360.0170.06720.32
5.5.350.0130.06720.35
5.5.340.0170.07720.89
5.5.330.0070.08320.79
5.5.320.0070.06720.88
5.5.310.0130.08020.88
5.5.300.0130.07320.87
5.5.290.0130.08020.92
5.5.280.0170.07720.63
5.5.270.0030.08720.63
5.5.260.0030.09020.81
5.5.250.0170.07320.64
5.5.240.0130.04320.25
5.5.230.0170.07020.11
5.5.220.0200.06720.16
5.5.210.0100.07320.26
5.5.200.0070.07720.19
5.5.190.0070.06320.23
5.5.180.0130.07720.27
5.5.160.0070.08720.26
5.5.150.0030.07720.16
5.5.140.0070.05720.20
5.5.130.0030.08020.18
5.5.120.0030.08720.17
5.5.110.0070.07720.21
5.5.100.0070.05020.07
5.5.90.0070.08020.06
5.5.80.0100.05320.15
5.5.70.0070.07720.13
5.5.60.0130.07320.00
5.5.50.0030.08020.05
5.5.40.0100.06320.15
5.5.30.0070.08319.99
5.5.20.0070.05020.04
5.5.10.0070.08020.04
5.5.00.0130.07020.03
5.4.450.0000.06319.11
5.4.440.0200.07319.44
5.4.430.0100.07719.30
5.4.420.0130.06719.38
5.4.410.0130.05019.01
5.4.400.0030.08019.15
5.4.390.0200.06319.03
5.4.380.0070.06718.96
5.4.370.0170.07719.10
5.4.360.0000.07318.96
5.4.350.0030.06318.81
5.4.340.0100.07319.06
5.4.320.0130.07319.05
5.4.310.0100.04718.98
5.4.300.0100.05318.99
5.4.290.0000.08718.80
5.4.280.0000.05018.94
5.4.270.0100.08018.94
5.4.260.0100.07719.09
5.4.250.0100.07019.01
5.4.240.0130.06718.94
5.4.230.0070.07718.97
5.4.220.0100.07719.02
5.4.210.0170.06318.99
5.4.200.0030.05019.05
5.4.190.0070.07719.02
5.4.180.0000.04718.96
5.4.170.0100.05719.02
5.4.160.0070.07319.21
5.4.150.0000.05019.02
5.4.140.0070.04716.26
5.4.130.0030.07316.30
5.4.120.0130.06316.31
5.4.110.0100.03316.21
5.4.100.0070.03716.36
5.4.90.0070.03716.22
5.4.80.0030.07716.29
5.4.70.0100.03716.39
5.4.60.0030.06316.28
5.4.50.0100.07716.34
5.4.40.0070.07316.40
5.4.30.0030.04716.21
5.4.20.0030.07316.28
5.4.10.0030.07316.23
5.4.00.0070.04315.76
5.3.290.0100.07314.52
5.3.280.0070.06714.45
5.3.270.0100.07314.58
5.3.260.0100.04314.58
5.3.250.0100.07314.59
5.3.240.0100.03014.52
5.3.230.0100.05014.53
5.3.220.0070.05014.43
5.3.210.0070.04714.53
5.3.200.0130.05014.43
5.3.190.0030.07314.39
5.3.180.0030.07714.51
5.3.170.0070.05314.52
5.3.160.0100.07714.42
5.3.150.0070.07314.52
5.3.140.0000.04314.41
5.3.130.0070.03714.46
5.3.120.0170.07014.51
5.3.110.0030.05314.48
5.3.100.0000.07314.04
5.3.90.0030.07013.83
5.3.80.0000.05013.77
5.3.70.0070.07713.88
5.3.60.0030.07314.01
5.3.50.0130.06713.92
5.3.40.0070.06313.81
5.3.30.0070.06313.81
5.3.20.0100.07313.64
5.3.10.0000.05313.61
5.3.00.0070.05713.61
5.2.170.0070.05311.01
5.2.160.0000.04310.90
5.2.150.0070.06311.09
5.2.140.0000.03310.99
5.2.130.0130.05311.12
5.2.120.0130.05311.02
5.2.110.0000.03711.09
5.2.100.0030.06011.09
5.2.90.0070.05711.17
5.2.80.0000.06710.90
5.2.70.0070.05011.04
5.2.60.0070.06311.10
5.2.50.0070.06011.04
5.2.40.0070.05310.99
5.2.30.0100.05310.99
5.2.20.0030.06310.80
5.2.10.0070.06010.71
5.2.00.0070.06010.63
5.1.60.0070.05310.04
5.1.50.0000.0509.97
5.1.40.0000.05710.00
5.1.30.0030.06010.24
5.1.20.0030.04010.39
5.1.10.0030.0579.90
5.1.00.0070.04310.05
5.0.50.0030.0538.62
5.0.40.0030.0438.41
5.0.30.0030.0608.28
5.0.20.0030.0338.18
5.0.10.0070.0308.27
5.0.00.0030.0708.21
4.4.90.0070.0207.66
4.4.80.0000.0377.66
4.4.70.0130.0177.66
4.4.60.0000.0337.66
4.4.50.0000.0377.66
4.4.40.0030.0507.66
4.4.30.0030.0237.66
4.4.20.0070.0177.66
4.4.10.0000.0377.66
4.4.00.0030.0577.66
4.3.110.0030.0337.66
4.3.100.0070.0307.66
4.3.90.0000.0207.66
4.3.80.0030.0537.66
4.3.70.0000.0337.66
4.3.60.0000.0237.66
4.3.50.0030.0337.66
4.3.40.0030.0337.66
4.3.30.0000.0207.66
4.3.20.0000.0207.66
4.3.10.0000.0377.66
4.3.00.0000.0337.66

preferences:
51.61 ms | 401 KiB | 5 Q