3v4l.org

run code in 300+ PHP versions simultaneously
<?php $places = ['Places'=>[]]; $book1 = new stdClass; $book1->PlaceId = 837; $book1->Name = "United Arab Emirates"; $book1->Type = "Country"; $book2 = new stdClass; $book2->PlaceId = 838; $book2->Name = "Afganistant"; $book2->Type = "Country"; $book3 = new stdClass; $book3->PlaceId = 839; $book3->Name = "Canada"; $book3->Type = "Country"; $places['Places'][] = $book1; $places['Places'][] = $book2; $places['Places'][] = $book3; //print_r($places); $key = array_search(839, array_column($places['Places'], 'PlaceId')); print_r($places['Places'][$key]); ?>

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.5.10.0100.00818.48
8.5.00.0120.00819.97
8.4.150.0020.00114.05
8.4.140.0130.00817.62
8.4.130.0080.01117.58
8.4.120.0130.00822.50
8.4.110.0100.00918.86
8.4.100.0110.01017.64
8.4.90.0060.00517.58
8.4.80.0080.00519.20
8.4.70.0100.01018.01
8.4.60.0110.00918.70
8.4.50.0090.01018.64
8.4.40.0040.00422.39
8.4.30.0170.00518.57
8.4.20.0240.01018.88
8.4.10.0200.00917.75
8.3.280.0110.00918.28
8.3.270.0140.00616.61
8.3.260.0140.00616.47
8.3.250.0110.00818.84
8.3.240.0080.01016.56
8.3.230.0090.00516.53
8.3.220.0110.00616.70
8.3.210.0110.01016.64
8.3.200.0050.00416.59
8.3.190.0100.00917.08
8.3.180.0120.00716.70
8.3.170.0090.00917.00
8.3.160.0160.01417.28
8.3.150.0260.00618.67
8.3.140.0240.00316.38
8.3.130.0160.01117.30
8.3.120.0240.00618.67
8.3.110.0210.00518.72
8.3.100.0190.00616.44
8.3.90.0300.00221.33
8.3.80.0230.00517.15
8.3.70.0270.00616.64
8.3.60.0250.00717.38
8.3.50.0260.00217.75
8.3.40.0150.00918.12
8.3.30.0160.00218.06
8.3.20.0090.00319.26
8.3.10.0080.00520.56
8.3.00.0080.00519.64
8.2.290.0120.00618.68
8.2.280.0090.01018.45
8.2.270.0200.00916.97
8.2.260.0220.00616.41
8.2.250.0190.00516.44
8.2.240.0220.00417.49
8.2.230.0200.00519.53
8.2.220.0180.00620.13
8.2.210.0170.00821.46
8.2.200.0170.00917.42
8.2.190.0210.01016.77
8.2.180.0210.00621.14
8.2.170.0210.00920.20
8.2.160.0230.00719.47
8.2.150.0170.00320.92
8.2.140.0140.00921.00
8.2.130.0200.00321.85
8.2.120.0170.00718.94
8.2.110.0230.00819.83
8.2.100.0210.00817.46
8.2.90.0180.00617.72
8.2.80.0140.01118.11
8.2.70.0180.00617.80
8.2.60.0170.00717.75
8.2.50.0230.00217.73
8.2.40.0190.00417.87
8.2.30.0160.00517.70
8.2.20.0120.01017.79
8.2.10.0180.00318.53
8.2.00.0150.00717.76
8.1.330.0140.00516.27
8.1.320.0140.00516.16
8.1.310.0250.00216.32
8.1.300.0190.00317.09
8.1.290.0170.00923.45
8.1.280.0200.00920.97
8.1.270.0250.00219.63
8.1.260.0210.00821.81
8.1.250.0170.00622.74
8.1.240.0220.00019.59
8.1.230.0190.00419.07
8.1.220.0180.00517.49
8.1.210.0200.00317.90
8.1.200.0170.00517.12
8.1.190.0150.00617.18
8.1.180.0150.00317.62
8.1.170.0110.00417.99
8.1.160.0050.00618.02
8.1.150.0080.01017.87
8.1.140.0170.00818.00
8.1.130.0210.00818.70
8.1.120.0160.00317.17
8.1.110.0130.00517.24
8.1.100.0080.00617.34
8.1.90.0120.00617.25
8.1.80.0180.00417.22
8.1.70.0190.00317.19
8.1.60.0190.00317.37
8.1.50.0160.00817.40
8.1.40.0160.00617.34
8.1.30.0180.00417.50
8.1.20.0140.00717.49
8.1.10.0090.01117.37
8.1.00.0140.00717.35
8.0.300.0160.00518.33
8.0.290.0120.00816.55
8.0.280.0170.00417.41
8.0.270.0220.00316.80
8.0.260.0130.00617.44
8.0.250.0150.00616.59
8.0.240.0100.00216.58
8.0.230.0170.00116.63
8.0.220.0200.00316.52
8.0.210.0120.00616.57
8.0.200.0170.00016.70
8.0.190.0100.00616.53
8.0.180.0110.00416.59
8.0.170.0110.00216.74
8.0.160.0100.00516.59
8.0.150.0100.00516.66
8.0.140.0120.00616.61
8.0.130.0110.00415.70
8.0.120.0100.00416.58
8.0.110.0120.00516.48
8.0.100.0090.00716.52
8.0.90.0070.00716.60
8.0.80.0120.00616.55
8.0.70.0120.00216.65
8.0.60.0120.00316.71
8.0.50.0130.00216.41
8.0.30.0140.00916.83
8.0.20.0140.01016.92
8.0.10.0080.00716.69
8.0.00.0120.01016.53
7.4.330.0100.00016.42
7.4.320.0090.00316.32
7.4.300.0060.00516.31
7.4.290.0110.00516.12
7.4.280.0090.00416.25
7.4.270.0080.00616.24
7.4.260.0120.00016.26
7.4.250.0090.00216.33
7.4.240.0070.00416.23
7.4.230.0080.00416.30
7.4.220.0080.00316.26
7.4.210.0130.00816.42
7.4.200.0090.00716.22
7.4.190.0230.00416.16
7.4.180.0130.00316.27
7.4.160.0160.00516.37
7.4.150.0230.01216.22
7.4.140.0120.01016.93
7.4.130.0140.00716.31
7.4.120.0190.01016.30
7.4.110.0120.01016.16
7.4.100.0170.00716.28
7.4.90.0120.00916.21
7.4.80.0110.01117.20
7.4.70.0110.00916.26
7.4.60.0140.00716.17
7.4.50.0150.00616.12
7.4.40.0130.01116.23
7.4.30.0170.00516.05
7.4.20.0120.01016.23
7.4.10.0210.00416.21
7.4.00.0150.00515.75
7.3.330.0130.00714.52
7.3.320.0140.00414.69
7.3.310.0140.00516.34
7.3.300.0120.00516.26
7.3.290.0160.00316.14
7.3.280.0090.00916.29
7.3.270.0150.01915.77
7.3.260.0130.00816.34
7.3.250.0190.00816.30
7.3.240.0140.00716.43
7.3.230.0200.00216.25
7.3.220.0280.00615.73
7.3.210.0220.01016.24
7.3.200.0150.00816.22
7.3.190.0190.00716.19
7.3.180.0180.00716.32
7.3.170.0120.01216.23
7.3.160.0150.00816.29
7.3.150.0250.00216.05
7.3.140.0120.01516.05
7.3.130.0210.00915.95
7.3.120.0210.00716.09
7.3.110.0230.00415.90
7.3.100.0170.00915.98
7.3.90.0220.00516.36
7.3.80.0200.00716.21
7.3.70.0230.00316.03
7.3.60.0210.00616.13
7.3.50.0190.00916.23
7.3.40.0120.01615.72
7.3.30.0160.00715.60
7.3.20.0190.00616.89
7.3.10.0190.00916.93
7.3.00.0220.00516.86
7.2.340.0300.00716.08
7.2.330.0170.00816.41
7.2.320.0110.01316.27
7.2.310.0160.00716.22
7.2.300.0170.00816.40
7.2.290.0130.01216.45
7.2.280.0220.00716.32
7.2.270.0170.01016.31
7.2.260.0210.00916.36
7.2.250.0240.00716.25
7.2.240.0250.00616.17
7.2.230.0160.01216.12
7.2.220.0170.01016.35
7.2.210.0210.00716.31
7.2.200.0220.00616.21
7.2.190.0240.00416.52
7.2.180.0190.00916.12
7.2.170.0210.00315.96
7.2.160.0190.00315.85
7.2.150.0190.01017.06
7.2.140.0160.00817.16
7.2.130.0230.00417.17
7.2.120.0180.00617.19
7.2.110.0200.00517.14
7.2.100.0200.00817.08
7.2.90.0240.00817.24
7.2.80.0200.00817.11
7.2.70.0160.01017.11
7.2.60.0240.00617.27
7.2.50.0200.01017.18
7.2.40.0210.00817.12
7.2.30.0240.00517.07
7.2.20.0180.00817.17
7.2.10.0160.00817.15
7.2.00.0150.00717.14
7.1.330.0130.01116.30
7.1.320.0130.01016.41
7.1.310.0170.00916.16
7.1.300.0190.00316.35
7.1.290.0200.00216.21
7.1.280.0110.01016.08
7.1.270.0130.00616.06
7.1.260.0180.00216.04
7.1.250.0100.00916.06
7.1.240.0190.00416.28
7.1.230.0120.01116.33
7.1.220.0200.00516.18
7.1.210.0160.00616.33
7.1.200.0170.00616.10
7.1.190.0170.00616.38
7.1.180.0150.00816.24
7.1.170.0130.01016.11
7.1.160.0180.00516.16
7.1.150.0220.00216.16
7.1.140.0190.00316.41
7.1.130.0150.00716.37
7.1.120.0160.00616.15
7.1.110.0180.00616.23
7.1.100.0200.00516.18
7.1.90.0120.01016.28
7.1.80.0180.00516.28
7.1.70.0140.01016.25
7.1.60.0310.00916.25
7.1.50.0180.00616.40
7.1.40.0200.00316.37
7.1.30.0190.00716.41
7.1.20.0190.00516.26
7.1.10.0140.00816.22
7.1.00.0170.00816.13

preferences:
151.17 ms | 403 KiB | 5 Q