3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ '0' => [ 'foo' => 'value1', 'bar' => 'value2', 'formats' => [ 'foo' => 'value_1', 'bar' => 'value_2', ] ], '1' => [ 'foo' => 'value1', 'bar' => 'value2', 'formats' => [ 'foo' => 'value_1', 'bar' => 'value_2', ] ] ]; var_dump($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.0120.00918.27
8.3.50.0100.00716.44
8.3.40.0130.00318.66
8.3.30.0110.00418.59
8.3.20.0040.00421.54
8.3.10.0030.00521.78
8.3.00.0050.00319.44
8.2.180.0120.00618.29
8.2.170.0040.01122.96
8.2.160.0150.00020.44
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.77
8.2.110.0060.00319.39
8.2.100.0070.00417.59
8.2.90.0050.00319.09
8.2.80.0000.00817.97
8.2.70.0080.00017.92
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0060.00320.59
8.2.30.0040.00419.34
8.2.20.0000.00817.84
8.2.10.0050.00217.96
8.2.00.0050.00217.98
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0050.00720.89
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.22
8.1.190.0060.00317.09
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0000.00718.76
8.1.150.0070.00318.91
8.1.140.0040.00417.54
8.1.130.0040.00417.38
8.1.120.0090.00017.37
8.1.110.0040.00417.27
8.1.100.0050.00517.39
8.1.90.0070.00017.27
8.1.80.0000.00817.36
8.1.70.0070.00317.35
8.1.60.0000.00817.39
8.1.50.0000.00817.45
8.1.40.0040.00417.41
8.1.30.0030.00517.44
8.1.20.0060.00317.44
8.1.10.0080.00017.51
8.1.00.0000.00917.41
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.23
8.0.270.0000.00717.23
8.0.260.0070.00016.70
8.0.250.0000.00716.90
8.0.240.0030.00316.83
8.0.230.0070.00016.84
8.0.220.0040.00416.79
8.0.210.0070.00016.72
8.0.200.0040.00616.82
8.0.190.0000.00816.85
8.0.180.0040.00416.89
8.0.170.0000.00816.85
8.0.160.0040.00416.88
8.0.150.0030.00316.74
8.0.140.0080.00016.78
8.0.130.0000.00513.20
8.0.120.0030.00316.82
8.0.110.0040.00416.61
8.0.100.0050.00316.82
8.0.90.0040.00416.80
8.0.80.0110.01116.76
8.0.70.0040.00416.61
8.0.60.0000.00816.77
8.0.50.0000.00716.64
8.0.30.0100.00916.89
8.0.20.0100.01017.40
8.0.10.0050.00216.96
8.0.00.0140.00716.62
7.4.330.0000.00515.55
7.4.320.0030.00316.42
7.4.300.0030.00316.38
7.4.290.0070.00016.42
7.4.280.0030.00616.51
7.4.270.0050.00216.39
7.4.260.0040.00416.34
7.4.250.0000.00716.29
7.4.240.0000.00716.34
7.4.230.0030.00316.62
7.4.220.0000.00716.55
7.4.210.0080.00616.53
7.4.200.0000.00816.50
7.4.140.0130.00817.86
7.4.130.0100.00716.36
7.4.120.0120.00716.42
7.4.110.0060.01016.66
7.4.100.0170.00316.46
7.4.90.0140.00316.29
7.4.80.0100.01319.39
7.4.70.0150.00316.52
7.4.60.0140.00616.16
7.4.50.0100.00716.37
7.4.40.0080.00816.42
7.4.00.0090.00614.99
7.3.330.0030.00312.87
7.3.320.0030.00312.96
7.3.310.0050.00216.27
7.3.300.0030.00315.97
7.3.290.0070.00016.12
7.3.280.0040.01316.11
7.3.260.0120.00916.10
7.3.240.0110.00816.39
7.3.230.0130.00316.07
7.3.210.0100.00716.50
7.3.200.0050.01316.26
7.3.190.0130.00316.17
7.3.180.0070.01116.12
7.3.170.0060.01016.36
7.3.160.0080.01216.23
7.2.330.0150.00316.19
7.2.320.0110.00716.25
7.2.310.0090.01516.54
7.2.300.0060.00916.40
7.2.290.0100.00716.32
7.2.60.0070.01016.68
7.2.50.0060.00616.66
7.2.40.0930.00917.46
7.2.30.0120.01417.37
7.2.20.0130.01417.50
7.2.10.0100.01717.18
7.2.00.0090.01217.50
7.1.200.0030.01015.59
7.1.160.0100.01416.54
7.1.150.0770.01216.58
7.1.140.0080.01316.34
7.1.130.0120.01316.49
7.1.120.0070.01616.52
7.1.110.0090.00816.12
7.1.100.0090.01216.04
7.1.90.0090.01015.79
7.1.80.2390.01115.91
7.1.70.2740.00815.32
7.1.60.2910.01133.31
7.1.50.2790.01232.62
7.1.40.4700.01832.34
7.1.30.2780.01732.40
7.1.20.2760.01432.82
7.1.10.3460.01114.82
7.1.00.2350.01114.70

preferences:
31.98 ms | 400 KiB | 5 Q