3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; $a = ['itemListElement' => ['@type' => 'ListItem', 'position' => '1', 'item' => ['name' => 'testName1']]]; $b = ['itemListElement' => ['@type' => 'ListItem', 'position' => '2', 'item' => ['name' => 'testName2']]]; array_push($array, $a); 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.0150.00618.43
8.3.50.0040.01116.37
8.3.40.0090.00918.73
8.3.30.0000.01418.63
8.3.20.0070.00020.30
8.3.10.0030.01021.91
8.3.00.0080.00019.30
8.2.180.0090.01216.50
8.2.170.0070.00722.96
8.2.160.0080.00618.82
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00820.79
8.2.110.0060.00320.35
8.2.100.0070.00317.72
8.2.90.0040.00419.11
8.2.80.0000.00817.97
8.2.70.0080.00417.38
8.2.60.0040.00417.93
8.2.50.0030.00518.10
8.2.40.0040.00420.61
8.2.30.0030.00620.84
8.2.20.0040.00418.00
8.2.10.0040.00417.91
8.2.00.0000.00717.92
8.1.280.0100.01025.92
8.1.270.0000.00922.00
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.97
8.1.230.0030.00918.98
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0000.00818.88
8.1.160.0020.00518.91
8.1.150.0030.00618.71
8.1.140.0000.00719.44
8.1.130.0000.00718.82
8.1.120.0000.00717.44
8.1.110.0030.00617.36
8.1.100.0070.00017.45
8.1.90.0040.00417.41
8.1.80.0050.00217.39
8.1.70.0000.00717.38
8.1.60.0040.00417.34
8.1.50.0000.00817.38
8.1.40.0040.00417.32
8.1.30.0000.00717.48
8.1.20.0030.00617.65
8.1.10.0030.00617.51
8.1.00.0050.00217.30
8.0.300.0040.00420.06
8.0.290.0040.00416.63
8.0.280.0070.00018.33
8.0.270.0000.00817.18
8.0.260.0030.00318.55
8.0.250.0000.00716.89
8.0.240.0000.00716.88
8.0.230.0030.00616.89
8.0.220.0000.00716.78
8.0.210.0000.00816.78
8.0.200.0000.00616.93
8.0.190.0060.00316.75
8.0.180.0000.00716.74
8.0.170.0050.00216.92
8.0.160.0030.00316.87
8.0.150.0040.00416.74
8.0.140.0070.00016.78
8.0.130.0000.00513.24
8.0.120.0000.00816.80
8.0.110.0040.00416.74
8.0.100.0040.00416.71
8.0.90.0040.00416.73
8.0.80.0030.01416.71
8.0.70.0030.00516.70
8.0.60.0040.00416.88
8.0.50.0070.00016.60
8.0.30.0060.01317.11
8.0.20.0070.01317.40
8.0.10.0070.00017.00
8.0.00.0040.01416.59
7.4.330.0070.00015.55
7.4.320.0070.00016.59
7.4.300.0000.00616.54
7.4.290.0040.00416.54
7.4.280.0000.00816.53
7.4.270.0030.00316.50
7.4.260.0000.00716.47
7.4.250.0040.00416.32
7.4.240.0030.00316.46
7.4.230.0000.00716.44
7.4.220.0060.02216.52
7.4.210.0110.00416.39
7.4.200.0050.00316.57
7.4.160.0090.01116.37
7.4.150.0180.00617.40
7.4.140.0080.01017.86
7.4.130.0000.02016.45
7.4.120.0090.01116.42
7.4.110.0080.00816.31
7.4.100.0100.01316.43
7.4.90.0110.00716.31
7.4.80.0070.01019.39
7.4.70.0110.00816.46
7.4.60.0030.01616.46
7.4.50.0030.01216.16
7.4.40.0110.00716.28
7.4.30.0080.00916.49
7.4.00.0110.00714.75
7.3.330.0000.00512.89
7.3.320.0000.00513.11
7.3.310.0030.00316.21
7.3.300.0030.00316.02
7.3.290.0050.00916.11
7.3.280.0080.00916.12
7.3.270.0100.00717.40
7.3.260.0100.01216.41
7.3.250.0100.00816.28
7.3.240.0110.00716.31
7.3.230.0000.01716.29
7.3.210.0030.01316.34
7.3.200.0150.00816.02
7.3.190.0090.01216.19
7.3.180.0130.00316.15
7.3.170.0130.00316.44
7.3.160.0080.00816.21
7.3.10.0080.00516.34
7.3.00.0100.00316.42
7.2.330.0120.00616.45
7.2.320.0090.00916.68
7.2.310.0060.01216.57
7.2.300.0100.01316.39
7.2.290.0030.01316.62
7.2.130.0100.00316.55
7.2.120.0070.01116.70
7.2.110.0100.00016.46
7.2.100.0060.00916.74
7.2.90.0130.00316.60
7.2.80.0090.00616.68
7.2.70.0130.00616.74
7.2.60.0050.01216.64
7.2.50.0030.01216.80
7.2.40.0070.01016.86
7.2.30.0040.01416.82
7.2.20.0030.01316.74
7.2.10.0040.01116.67
7.2.00.0030.00618.05
7.1.250.0100.00315.77
7.1.200.0030.00915.57
7.1.100.0070.00717.93
7.1.70.0930.00615.40
7.1.60.0760.01033.24
7.1.50.0190.01534.89
7.1.40.0290.01834.21
7.1.30.0910.01332.63
7.1.20.0210.02134.39
7.1.10.0370.01014.86
7.1.00.0710.01016.81
7.0.200.0120.00416.41
7.0.190.0290.01614.90
7.0.180.0070.01316.18
7.0.170.0040.01116.09
7.0.160.0660.00716.29
7.0.150.0650.00914.27
7.0.140.0100.01016.14
7.0.130.0030.01516.35
7.0.120.0130.01116.36
7.0.110.0090.01216.30
7.0.100.0050.01516.18
7.0.90.0130.00716.13
7.0.80.0060.01616.23
7.0.70.0120.00916.29
7.0.60.0070.01416.22
7.0.50.0090.00916.47
7.0.40.0070.01016.42
7.0.30.0120.00616.51
7.0.20.0110.00416.57
7.0.10.0060.01016.53
7.0.00.0060.00816.34

preferences:
39.07 ms | 400 KiB | 5 Q