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); array_push($array, $b); 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.0090.00618.31
8.3.50.0120.00316.50
8.3.40.0140.00418.64
8.3.30.0040.01118.51
8.3.20.0040.00420.22
8.3.10.0110.00021.54
8.3.00.0080.00019.63
8.2.180.0140.00716.32
8.2.170.0110.00422.96
8.2.160.0070.01418.93
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00419.39
8.2.120.0040.00426.35
8.2.110.0030.00620.50
8.2.100.0090.00517.66
8.2.90.0000.00919.05
8.2.80.0040.00417.97
8.2.70.0060.00617.50
8.2.60.0080.00017.93
8.2.50.0030.00518.10
8.2.40.0000.00820.61
8.2.30.0070.00019.10
8.2.20.0050.00217.86
8.2.10.0000.00717.96
8.2.00.0000.00718.05
8.1.280.0070.00725.92
8.1.270.0000.00822.09
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0160.00020.86
8.1.230.0040.00718.97
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0040.00417.22
8.1.180.0070.00018.10
8.1.170.0000.00818.72
8.1.160.0000.00719.04
8.1.150.0060.00320.59
8.1.140.0040.00419.43
8.1.130.0070.00018.81
8.1.120.0090.00017.38
8.1.110.0030.00617.34
8.1.100.0030.00517.27
8.1.90.0000.00717.31
8.1.80.0000.00717.29
8.1.70.0030.00317.40
8.1.60.0000.00717.54
8.1.50.0000.00817.34
8.1.40.0040.00417.43
8.1.30.0080.00017.58
8.1.20.0040.00417.50
8.1.10.0000.00717.34
8.1.00.0000.00717.32
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0070.00018.33
8.0.270.0000.00717.23
8.0.260.0030.00318.45
8.0.250.0040.00416.85
8.0.240.0030.00416.93
8.0.230.0030.00316.86
8.0.220.0040.00416.78
8.0.210.0070.00016.84
8.0.200.0000.00716.89
8.0.190.0030.00516.88
8.0.180.0000.00716.77
8.0.170.0030.00516.81
8.0.160.0040.00316.75
8.0.150.0040.00416.80
8.0.140.0040.00416.67
8.0.130.0030.00313.20
8.0.120.0080.00016.69
8.0.110.0030.00616.61
8.0.100.0000.00716.67
8.0.90.0030.00516.85
8.0.80.0120.00916.79
8.0.70.0050.00316.79
8.0.60.0070.00016.63
8.0.50.0070.00016.70
8.0.30.0100.01117.00
8.0.20.0110.01017.40
8.0.10.0050.00316.89
8.0.00.0120.01216.61
7.4.330.0000.00615.55
7.4.320.0060.00016.55
7.4.300.0000.00716.53
7.4.290.0070.00016.44
7.4.280.0050.00316.39
7.4.270.0000.00716.35
7.4.260.0030.00316.36
7.4.250.0040.00416.44
7.4.240.0030.00516.54
7.4.230.0000.00716.55
7.4.220.0110.00716.45
7.4.210.0050.01116.61
7.4.200.0070.00016.53
7.4.160.0100.00716.30
7.4.150.0100.01417.40
7.4.140.0060.01317.86
7.4.130.0060.01216.30
7.4.120.0100.01116.43
7.4.110.0070.01016.36
7.4.100.0150.00616.35
7.4.90.0080.01216.33
7.4.80.0120.00619.39
7.4.70.0100.00616.45
7.4.60.0070.01216.36
7.4.50.0090.00916.25
7.4.40.0080.01116.23
7.4.30.0050.01116.37
7.4.10.0100.00714.97
7.4.00.0030.01314.91
7.3.330.0060.00012.97
7.3.320.0060.00012.98
7.3.310.0030.00316.13
7.3.300.0030.00315.96
7.3.290.0060.00916.12
7.3.280.0090.01016.11
7.3.270.0160.00817.40
7.3.260.0160.00316.30
7.3.250.0090.01216.25
7.3.240.0080.00916.25
7.3.230.0120.00916.22
7.3.210.0060.01216.33
7.3.200.0100.00716.50
7.3.190.0090.01116.07
7.3.180.0120.00916.17
7.3.170.0100.00616.18
7.3.160.0060.00916.32
7.3.130.0040.00914.57
7.3.120.0030.01314.84
7.3.110.0030.01314.56
7.3.100.0080.00814.56
7.3.90.0120.00314.66
7.3.80.0000.01014.65
7.3.70.0090.00614.60
7.3.60.0060.00914.66
7.3.50.0090.00914.63
7.3.40.0040.00814.68
7.3.30.0120.00014.52
7.3.20.0030.01016.60
7.3.10.0100.01016.31
7.3.00.0050.00516.60
7.2.330.0100.00816.09
7.2.320.0130.00316.54
7.2.310.0140.00716.49
7.2.300.0070.01316.30
7.2.290.0080.00816.27
7.2.260.0090.00614.70
7.2.250.0130.00614.90
7.2.240.0030.01314.83
7.2.230.0110.00414.96
7.2.220.0150.00314.46
7.2.210.0090.00315.09
7.2.200.0040.01114.71
7.2.190.0000.01614.80
7.2.180.0030.01014.79
7.2.170.0070.00714.82
7.2.160.0030.01014.71
7.2.150.0030.01216.67
7.2.140.0000.00916.77
7.2.130.0100.00316.73
7.2.120.0060.00616.70
7.2.110.0100.00316.88
7.2.100.0070.00716.73
7.2.90.0040.01516.50
7.2.80.0000.01516.82
7.2.70.0000.01116.79
7.2.60.0070.00716.61
7.2.50.0000.01116.80
7.2.40.0080.00816.68
7.2.30.0060.00316.86
7.2.20.0070.00716.57
7.2.10.0110.00416.92
7.2.00.0030.00917.71
7.1.330.0120.00415.52
7.1.320.0030.01015.64
7.1.310.0000.01415.97
7.1.300.0030.01515.78
7.1.290.0060.00315.89
7.1.280.0080.00315.75
7.1.270.0030.00915.53
7.1.260.0030.00715.91
7.1.250.0000.00915.88
7.1.240.0000.01215.88
7.1.230.0070.00715.58
7.1.220.0080.00315.67
7.1.210.0090.00615.64
7.1.200.0040.01015.46
7.1.190.0090.00615.63
7.1.180.0090.00615.60
7.1.170.0080.00415.89
7.1.160.0040.01115.59
7.1.150.0030.01415.92
7.1.140.0060.00615.56
7.1.130.0070.00715.82
7.1.120.0040.00715.59
7.1.110.0040.01115.77
7.1.100.0040.00616.80
7.1.90.0060.00315.84
7.1.80.0000.01215.92
7.1.70.0120.00416.49
7.1.60.0180.01225.14
7.1.50.0530.01024.19
7.1.40.1070.01724.07
7.1.30.0450.01325.22
7.1.20.0140.00925.03
7.1.10.0270.00715.16
7.1.00.0300.00916.17
7.0.330.0090.00315.45
7.0.320.0080.00015.16
7.0.310.0030.00915.49
7.0.300.0030.01015.42
7.0.290.0030.01015.31
7.0.280.0050.00515.23
7.0.270.0000.01215.27
7.0.260.0070.00715.54
7.0.250.0000.01215.27
7.0.240.0070.00715.21
7.0.230.0060.00315.39
7.0.220.0040.00815.27
7.0.210.0110.00415.35
7.0.200.0510.00615.16
7.0.190.0280.00815.09
7.0.180.0090.00615.66
7.0.170.0080.00715.84
7.0.160.0070.00815.64
7.0.150.0260.00914.88
7.0.140.0350.01214.83
7.0.130.0100.00715.83
7.0.120.0170.00715.88
7.0.110.0120.00815.71
7.0.100.0070.01215.67
7.0.90.0100.00515.73
7.0.80.0090.00915.98
7.0.70.0070.01115.72
7.0.60.0110.00315.67
7.0.50.0050.01215.97
7.0.40.0070.01115.01
7.0.30.0040.00914.91
7.0.20.0070.01014.79
7.0.10.0320.00914.86
7.0.00.0080.01114.83
5.6.400.0000.00814.50
5.6.390.0110.00414.21
5.6.380.0000.01014.19
5.6.370.0050.00513.95
5.6.360.0030.00714.02
5.6.350.0040.00813.97
5.6.340.0060.01014.34
5.6.330.0090.00014.48
5.6.320.0000.00914.57
5.6.310.0040.01113.85
5.6.300.0030.00714.39
5.6.290.0040.00714.14
5.6.280.0000.01414.29
5.6.270.0060.01014.27
5.6.260.0030.00614.21
5.6.250.0060.00914.51
5.6.240.0050.00514.39
5.6.230.0130.00314.30
5.6.220.0030.00714.11
5.6.210.0060.00914.34
5.6.200.0030.01314.32
5.6.190.0040.00814.33
5.6.180.0080.00414.19
5.6.170.0080.00713.97
5.6.160.0040.01114.10
5.6.150.0040.00414.04
5.6.140.0040.00414.25
5.6.130.0000.01214.27
5.6.120.0000.01714.12
5.6.110.0000.01614.23
5.6.100.0090.00614.26
5.6.90.0030.01214.26
5.6.80.0090.00314.04
5.6.70.0080.00314.11
5.6.60.0000.01014.03
5.6.50.0030.00914.09
5.6.40.0040.01114.04
5.6.30.0070.00713.95
5.6.20.0030.01113.89
5.6.10.0070.00714.13
5.6.00.0060.00614.05

preferences:
47.43 ms | 401 KiB | 5 Q