3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = [['A','B','C'],[1,2,3],[4,5,6],[7,8,9]]; $headers = array_shift($x); array_walk( $x, function(&$row) use ($headers) { $row = array_combine($headers, $row); } ); $y = json_export($x,true); echo $y;

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.0150.00316.63
8.3.50.0120.00318.16
8.3.40.0110.00718.97
8.3.30.0120.00318.68
8.3.20.0040.00420.18
8.3.10.0000.00823.50
8.3.00.0060.00319.25
8.2.180.0120.00318.41
8.2.170.0110.00322.96
8.2.160.0120.00620.52
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00017.75
8.2.120.0000.00826.35
8.2.110.0060.00319.45
8.2.100.0090.00317.75
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0000.00817.74
8.2.60.0000.00817.93
8.2.50.0030.00818.07
8.2.40.0000.00819.41
8.2.30.0030.00320.72
8.2.20.0000.00817.75
8.2.10.0000.00718.18
8.2.00.0040.00418.18
8.1.280.0090.00625.92
8.1.270.0000.00823.97
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0060.00323.82
8.1.230.0050.00517.54
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0050.00318.53
8.1.160.0030.00522.02
8.1.150.0020.00518.81
8.1.140.0040.00419.55
8.1.130.0070.00017.73
8.1.120.0030.00417.37
8.1.110.0000.00917.45
8.1.100.0040.00417.47
8.1.90.0040.00417.51
8.1.80.0000.00817.36
8.1.70.0000.00817.46
8.1.60.0040.00417.54
8.1.50.0030.00617.52
8.1.40.0040.00417.54
8.1.30.0030.00517.69
8.1.20.0050.00317.65
8.1.10.0080.00017.46
8.1.00.0050.00317.57
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0000.00717.24
8.0.260.0000.00717.26
8.0.250.0080.00017.04
8.0.240.0040.00416.85
8.0.230.0040.00417.02
8.0.220.0000.01016.85
8.0.210.0040.00416.97
8.0.200.0060.00017.00
8.0.190.0040.00417.06
8.0.180.0040.00416.90
8.0.170.0000.00716.97
8.0.160.0000.00716.86
8.0.150.0030.00516.92
8.0.140.0040.00416.73
8.0.130.0000.00613.28
8.0.120.0040.00416.80
8.0.110.0030.00616.95
8.0.100.0000.00816.82
8.0.90.0040.00416.91
8.0.80.0090.00617.00
8.0.70.0040.00417.07
8.0.60.0040.00416.84
8.0.50.0040.00416.91
8.0.30.0060.00916.96
8.0.20.0140.00617.40
8.0.10.0040.00417.07
8.0.00.0090.00816.83
7.4.330.0000.00516.75
7.4.320.0070.00016.61
7.4.300.0000.00716.58
7.4.290.0070.00016.48
7.4.280.0080.00016.60
7.4.270.0030.00316.50
7.4.260.0070.00316.48
7.4.250.0070.00016.49
7.4.240.0060.00116.50
7.4.230.0000.00716.63
7.4.220.0060.01216.70
7.4.210.0020.01216.51
7.4.200.0040.00416.54
7.4.160.0110.00416.60
7.4.150.0120.00617.40
7.4.140.0050.01517.86
7.4.130.0100.00716.58
7.4.120.0150.00316.49
7.4.110.0110.01116.41
7.4.100.0140.00316.47
7.4.90.0110.00716.62
7.4.80.0120.00319.39
7.4.70.0050.01516.57
7.4.60.0130.00316.38
7.4.50.0100.00716.22
7.4.40.0100.00716.38
7.4.30.0090.00916.75
7.4.00.0070.01115.18
7.3.330.0000.00513.37
7.3.320.0050.00013.34
7.3.310.0070.00016.26
7.3.300.0000.00716.27
7.3.290.0070.00016.34
7.3.280.0100.00516.29
7.3.270.0090.00817.40
7.3.260.0090.00916.67
7.3.250.0110.00716.39
7.3.240.0140.00616.39
7.3.230.0030.01316.52
7.3.210.0070.01016.49
7.3.200.0060.00916.61
7.3.190.0140.00316.44
7.3.180.0090.00916.63
7.3.170.0030.01316.40
7.3.160.0080.00816.52
7.3.120.0000.01414.68
7.3.110.0100.00314.90
7.3.100.0060.00314.71
7.3.90.0000.01314.67
7.3.80.0030.00914.56
7.3.70.0000.00814.51
7.3.60.0060.00914.83
7.3.50.0100.00714.90
7.3.40.0130.00014.82
7.3.30.0040.00814.88
7.3.20.0000.01416.62
7.3.10.0040.00916.52
7.3.00.0030.00916.47
7.2.330.0100.01016.48
7.2.320.0110.00716.72
7.2.310.0080.01416.70
7.2.300.0100.00716.36
7.2.290.0090.00916.63
7.2.240.0060.00614.93
7.2.230.0000.01414.87
7.2.220.0030.00715.17
7.2.210.0060.00914.80
7.2.200.0000.01214.98
7.2.190.0060.00614.94
7.2.180.0110.00714.90
7.2.170.0100.00314.95
7.2.160.0030.00914.64
7.2.150.0100.00316.92
7.2.140.0070.00716.64
7.2.130.0080.00316.83
7.2.120.0070.00716.70
7.2.110.0030.01216.82
7.2.100.0020.01216.79
7.2.90.0050.00916.95
7.2.80.0070.00716.68
7.2.70.0040.01116.96
7.2.60.0050.00716.72
7.2.50.0080.00416.63
7.2.40.0050.00716.62
7.2.30.0040.00916.86
7.2.20.0190.00616.91
7.2.10.0070.00816.76
7.2.00.0050.01017.76
7.1.330.0040.00716.00
7.1.320.0000.01615.88
7.1.310.0050.00515.60
7.1.300.0000.00915.44
7.1.290.0030.01015.46
7.1.280.0000.01015.63
7.1.270.0060.00615.77
7.1.260.0070.00715.78
7.1.250.0020.01415.84
7.1.200.0100.00315.71
7.1.100.0030.01018.00
7.1.70.0000.01017.19
7.1.60.0120.01219.36
7.1.50.0000.02116.94
7.1.00.0070.07322.37
7.0.200.0030.00716.91
7.0.60.0230.04019.99
7.0.50.0170.06017.88
7.0.40.0030.06020.30
7.0.30.0330.06720.16
7.0.20.0300.05020.20
7.0.10.0100.08020.22
7.0.00.0070.05320.20
5.6.280.0030.05720.82
5.6.210.0070.03720.61
5.6.200.0030.04018.16
5.6.190.0070.06320.41
5.6.180.0130.04720.27
5.6.170.0300.08320.55
5.6.160.0070.08020.52
5.6.150.0100.07718.22
5.6.140.0070.08018.18
5.6.130.0030.08318.29
5.6.120.0030.05721.04
5.6.110.0070.08320.98
5.6.100.0100.07021.05
5.6.90.0070.06721.08
5.6.80.0170.06320.29
5.5.350.0270.05320.38
5.5.340.0070.05018.07
5.5.330.0130.05720.43
5.5.320.0230.05320.38
5.5.310.0370.06720.30
5.5.300.0070.07017.96
5.5.290.0070.04017.98
5.5.280.0100.06720.94
5.5.270.0170.07720.73
5.5.260.0030.09020.77
5.5.250.0100.08320.55
5.5.240.0130.07020.19

preferences:
56.79 ms | 400 KiB | 5 Q