3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originalArray = [ [ 'entity_id' => '131813' ], [ 'entity_id' => '213808' ], [ 'entity_id' => '712885' ] ]; $newArray = []; foreach($originalArray AS $entity) { $newArray[] = $entity['entity_id']; } print_r($newArray);

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.4.140.0080.01317.43
8.4.130.0120.00917.63
8.4.120.0100.00220.48
8.4.110.0120.00718.56
8.4.100.0160.00517.49
8.4.90.0050.00317.75
8.4.80.0120.00817.89
8.4.70.0040.00417.75
8.4.60.0130.00818.61
8.4.50.0080.01122.34
8.4.40.0130.00719.09
8.4.30.0100.01017.66
8.4.20.0130.00717.76
8.4.10.0050.00518.38
8.3.270.0110.00816.39
8.3.260.0110.00816.70
8.3.250.0110.00718.97
8.3.240.0070.01216.42
8.3.230.0090.01116.81
8.3.220.0110.00816.61
8.3.210.0120.00818.63
8.3.200.0040.00516.46
8.3.190.0100.00717.19
8.3.180.0030.00516.75
8.3.170.0110.00716.98
8.3.160.0120.00618.39
8.3.150.0120.00618.27
8.3.140.0070.00717.11
8.3.130.0080.00018.38
8.3.120.0060.00320.68
8.3.110.0060.00320.94
8.3.100.0080.01216.78
8.3.90.0050.00226.77
8.3.80.0060.00618.56
8.3.70.0090.00616.63
8.3.60.0070.01116.38
8.3.50.0130.00621.95
8.3.40.0070.01418.71
8.3.30.0110.00418.66
8.3.20.0000.00820.86
8.3.10.0040.00423.57
8.3.00.0000.00720.68
8.2.290.0160.00520.52
8.2.280.0050.00418.45
8.2.270.0180.00017.36
8.2.260.0060.00916.40
8.2.250.0110.00716.68
8.2.240.0030.00619.04
8.2.230.0040.00422.58
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0030.00616.50
8.2.190.0150.00716.63
8.2.180.0100.01018.41
8.2.170.0090.00622.96
8.2.160.0130.00721.09
8.2.150.0000.00924.18
8.2.140.0100.00324.66
8.2.130.0060.00322.30
8.2.120.0040.00426.35
8.2.110.0060.00321.98
8.2.100.0040.01217.84
8.2.90.0040.00417.75
8.2.80.0040.00418.86
8.2.70.0040.00418.05
8.2.60.0030.00617.75
8.2.50.0000.00917.75
8.2.40.0080.00017.63
8.2.30.0040.00417.62
8.2.20.0000.00717.77
8.2.10.0040.00418.00
8.2.00.0000.00717.98
8.1.330.0150.00516.23
8.1.320.0110.00916.13
8.1.310.0070.00018.34
8.1.300.0040.00417.82
8.1.290.0000.00930.84
8.1.280.0170.00325.92
8.1.270.0050.00323.91
8.1.260.0030.00528.09
8.1.250.0040.00428.09
8.1.240.0000.01023.97
8.1.230.0070.00420.84
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0030.00517.35
8.1.190.0030.00817.00
8.1.180.0030.00618.10
8.1.170.0040.00418.91
8.1.160.0070.00018.82
8.1.150.0040.00418.79
8.1.140.0000.00819.55
8.1.130.0030.00317.60
8.1.120.0000.00817.35
8.1.110.0000.00717.40
8.1.100.0000.00717.44
8.1.90.0030.00317.34
8.1.80.0030.00417.43
8.1.70.0000.00717.35
8.1.60.0000.00717.59
8.1.50.0030.00517.54
8.1.40.0000.00917.54
8.1.30.0090.00017.64
8.1.20.0040.00417.59
8.1.10.0000.00817.42
8.1.00.0030.00717.50
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00717.91
8.0.270.0030.00717.92
8.0.260.0030.00317.35
8.0.250.0040.00416.84
8.0.240.0000.00716.96
8.0.230.0030.00616.98
8.0.220.0000.00716.75
8.0.210.0000.00716.87
8.0.200.0000.00616.95
8.0.190.0030.00516.90
8.0.180.0080.00016.93
8.0.170.0080.00016.88
8.0.160.0020.00516.88
8.0.150.0060.00316.91
8.0.140.0030.00616.80
8.0.130.0050.00013.24
8.0.120.0000.00816.71
8.0.110.0030.00716.88
8.0.100.0000.00716.75
8.0.90.0040.00416.75
8.0.80.0060.01016.84
8.0.70.0080.00016.79
8.0.60.0030.00316.83
8.0.50.0080.00016.79
8.0.30.0130.00517.05
8.0.20.0080.01017.40
8.0.10.0030.00516.97
8.0.00.0060.01116.84
7.4.330.0000.00515.08
7.4.320.0000.00616.55
7.4.300.0000.00616.45
7.4.290.0000.00716.61
7.4.280.0000.00816.46
7.4.270.0020.00516.63
7.4.260.0000.00916.38
7.4.250.0000.00716.55
7.4.240.0040.00416.39
7.4.230.0030.00316.38
7.4.220.0070.01116.32
7.4.210.0080.01016.58
7.4.200.0030.00316.61
7.4.160.0100.00616.69
7.4.150.0120.01017.40
7.4.140.0090.00817.86
7.4.130.0080.01016.36
7.4.120.0070.00916.53
7.4.110.0160.00716.46
7.4.100.0070.01016.50
7.4.90.0170.00616.43
7.4.80.0090.00619.39
7.4.70.0170.00016.61
7.4.60.0090.00916.50
7.4.50.0050.00816.34
7.4.40.0040.01216.42
7.4.30.0090.00916.46
7.4.00.0090.00615.01
7.3.330.0020.00213.22
7.3.320.0040.00413.05
7.3.310.0030.00516.28
7.3.300.0030.00316.36
7.3.290.0030.00316.16
7.3.280.0090.00616.26
7.3.270.0160.00717.40
7.3.260.0070.01316.30
7.3.250.0050.01216.44
7.3.240.0100.01016.38
7.3.230.0040.01516.40
7.3.210.0080.00816.52
7.3.200.0090.01216.57
7.3.190.0060.00916.51
7.3.180.0040.01316.25
7.3.170.0060.01016.35
7.3.160.0110.00816.27
7.2.330.0000.01716.76
7.2.320.0060.01016.68
7.2.310.0030.01516.41
7.2.300.0140.00416.63
7.2.290.0130.00316.51
7.2.60.0320.00616.80
7.2.00.0120.00019.24
7.1.200.0040.00815.85
7.1.100.0110.00718.16
7.1.70.0030.00616.97
7.1.60.0070.00719.81
7.1.50.0060.01316.98
7.1.00.0030.07722.45
7.0.200.0260.00314.87
7.0.100.0130.07019.98
7.0.90.0100.06320.03
7.0.80.0030.06719.94
7.0.70.0230.06320.02
7.0.60.0200.05319.96
7.0.50.0030.07720.34
7.0.40.0070.07020.43
7.0.30.0200.06720.25
7.0.20.0130.07320.32
7.0.10.0130.05320.20
7.0.00.0370.07020.27
5.6.250.0170.05720.70
5.6.240.0170.06320.61
5.6.230.0130.07020.64
5.6.220.0130.07320.80
5.6.210.0130.06720.55
5.6.200.0230.06721.11
5.6.190.0200.05321.08
5.6.180.0200.07721.20
5.6.170.0130.07021.06
5.6.160.0130.06321.14
5.6.150.0030.06721.08
5.6.140.0270.04721.16
5.6.130.0100.06321.07
5.6.120.0100.07021.11
5.6.110.0200.07321.04
5.6.100.0130.07321.11
5.6.90.0170.07721.05
5.6.80.0200.05020.55
5.6.70.0270.04720.54
5.6.60.0230.05320.56
5.6.50.0200.05320.58
5.6.40.0170.07320.42
5.6.30.0200.06720.38
5.6.20.0230.06720.43
5.6.10.0130.05320.52
5.6.00.0130.06020.45

preferences:
37.92 ms | 403 KiB | 5 Q