3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [key1] => 'foobar', [key2] => [ [key2-1] => [], [key2-2] => 'foo', [key2-3] => 'foo2', [key2-4] => 'foo3' ], ];

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.70.0100.00716.75
8.3.60.0180.00318.55
8.3.50.0030.01018.00
8.3.40.0120.00618.66
8.3.30.0060.00618.72
8.3.20.0040.00421.77
8.3.10.0080.00023.52
8.3.00.0080.00019.68
8.2.180.0000.01525.92
8.2.170.0150.00018.95
8.2.160.0030.01022.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.84
8.2.110.0030.00622.13
8.2.100.0080.00417.70
8.2.90.0000.00720.45
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0030.00717.75
8.2.50.0040.00417.50
8.2.40.0080.00017.93
8.2.30.0030.00319.30
8.2.20.0030.00617.93
8.2.10.0070.00018.04
8.2.00.0070.00018.10
8.1.280.0060.00925.92
8.1.270.0000.00823.75
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00621.06
8.1.230.0060.00620.87
8.1.220.0030.00517.74
8.1.210.0030.00618.97
8.1.200.0040.00417.22
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0000.00717.62
8.1.160.0050.00218.71
8.1.150.0040.00418.93
8.1.140.0000.00817.50
8.1.130.0050.00318.84
8.1.120.0000.00717.44
8.1.110.0050.00317.27
8.1.100.0060.00617.36
8.1.90.0100.00017.39
8.1.80.0040.00417.41
8.1.70.0030.00317.28
8.1.60.0000.01017.43
8.1.50.0080.00017.37
8.1.40.0000.00717.48
8.1.30.0040.00417.43
8.1.20.0040.00417.47
8.1.10.0030.00617.51
8.1.00.0070.00417.32
8.0.300.0000.00820.03
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0070.00017.24
8.0.260.0100.00017.14
8.0.250.0090.00016.95
8.0.240.0030.00716.97
8.0.230.0000.00616.96
8.0.220.0070.00016.86
8.0.210.0040.00416.92
8.0.200.0000.00717.04
8.0.190.0000.00716.87
8.0.180.0080.00016.96
8.0.170.0000.01116.98
8.0.160.0020.00516.93
8.0.150.0030.00316.85
8.0.140.0040.00416.81
8.0.130.0030.00313.38
8.0.120.0040.00416.88
8.0.110.0040.00416.98
8.0.100.0070.00016.82
8.0.90.0050.00216.88
8.0.80.0030.01216.94
8.0.70.0000.00816.93
8.0.60.0040.00416.86
8.0.50.0030.00516.88
8.0.30.0140.00517.06
8.0.20.0080.01017.40
8.0.10.0040.00416.78
8.0.00.0130.00416.76
7.4.330.0050.00015.55
7.4.320.0000.00616.58
7.4.300.0030.00316.52
7.4.290.0040.00416.48
7.4.280.0100.00016.55
7.4.270.0030.00316.59
7.4.260.0040.00416.56
7.4.250.0050.00316.56
7.4.240.0050.00216.46
7.4.230.0030.00316.67
7.4.220.0040.00416.49
7.4.210.0110.00616.54
7.4.200.0000.00816.38
7.4.160.0120.00616.60
7.4.140.0110.00717.86
7.4.130.0150.00616.50
7.4.120.0110.00816.60
7.4.110.0060.00916.26
7.4.100.0120.00616.50
7.4.90.0070.01116.51
7.4.80.0210.00319.39
7.4.70.0060.01016.39
7.4.60.0220.01516.48
7.4.50.0080.01116.57
7.4.40.0100.00716.40
7.4.00.0070.00315.03
7.3.330.0000.00613.02
7.3.320.0030.00313.23
7.3.310.0060.00016.32
7.3.300.0000.00716.11
7.3.290.0060.00016.16
7.3.280.0030.01016.20
7.3.260.0120.00616.31
7.3.240.0120.00716.43
7.3.230.0110.00616.26
7.3.210.0190.00316.52
7.3.200.0070.01016.63
7.3.190.0000.01616.30
7.3.180.0100.01016.54
7.3.170.0150.00616.30
7.3.160.0110.00516.43
7.2.330.0120.00616.64
7.2.320.0120.00916.70
7.2.310.0130.01016.71
7.2.300.0140.01116.46
7.2.290.0120.00916.83
7.2.60.0080.00316.80
7.2.40.0370.01217.94
7.2.30.0370.01118.13
7.2.20.0480.01417.92
7.2.10.0460.01118.23
7.2.00.0420.00818.15
7.1.200.0070.00715.66
7.1.160.0540.01116.73
7.1.150.0820.01716.90
7.1.140.0450.01016.64
7.1.130.0430.01416.91
7.1.120.0430.00816.75
7.1.110.0490.01215.98
7.1.100.0480.01016.16
7.1.90.0480.01016.31
7.1.80.0520.00816.32
7.1.70.0400.00815.11
7.1.60.0600.01533.02
7.1.50.1510.01032.57
7.1.40.0620.00832.53
7.1.30.0780.01232.57
7.1.20.0690.01432.66
7.1.10.0960.01114.68
7.1.00.0490.01314.79

preferences:
51.87 ms | 401 KiB | 5 Q