3v4l.org

run code in 300+ PHP versions simultaneously
<?php $places = array((object)array('PlaceId' => 837, 'Name' => 'United Arab Emirates', 'Type' => 'Country'), (object)array('PlaceId' => 838, 'Name' => 'Afghanistan', 'Type' => 'Country'), (object)array('PlaceId' => 839, 'Name' => 'Antigua and Barbuda', 'Type' => 'Country') ); if (($k = array_search(837, array_column($places, 'PlaceId'))) !== false) { print_r($places[$k]); } else { echo "Not found!"; }

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.0030.00518.30
8.5.00.0070.00421.97
8.4.160.0180.00323.96
8.4.150.0090.00416.93
8.4.140.0120.00917.46
8.4.130.0150.00617.99
8.4.120.0050.00523.72
8.4.110.0120.00819.90
8.4.100.0060.00419.01
8.4.90.0080.00318.59
8.4.80.0080.01018.91
8.4.70.0080.00917.77
8.4.60.0110.00618.44
8.4.50.0120.00719.34
8.4.40.0030.00522.49
8.4.30.0100.00019.54
8.4.20.0040.00420.82
8.4.10.0160.00317.62
8.3.280.0180.01018.47
8.3.270.0130.01016.55
8.3.260.0140.00616.45
8.3.250.0060.00318.82
8.3.240.0100.00917.09
8.3.230.0130.00616.68
8.3.220.0090.01018.95
8.3.210.0080.01016.66
8.3.200.0080.00116.76
8.3.190.0110.00817.02
8.3.180.0080.00116.57
8.3.170.0070.01118.68
8.3.160.0100.01018.38
8.3.150.0090.00920.91
8.3.140.0120.00316.41
8.3.130.0050.00318.71
8.3.120.0030.00618.85
8.3.110.0040.00420.94
8.3.100.0110.00524.06
8.3.90.0040.00426.77
8.3.80.0050.00316.54
8.3.70.0160.00417.52
8.3.60.0090.00618.56
8.3.50.0140.00619.04
8.3.40.0160.00618.83
8.3.30.0040.01118.57
8.3.20.0070.01122.74
8.3.10.0150.00323.65
8.3.00.0040.00423.63
8.2.290.0090.01122.08
8.2.280.0080.00718.53
8.2.270.0060.00318.92
8.2.260.0100.00320.81
8.2.250.0050.01016.81
8.2.240.0090.00616.94
8.2.230.0060.00322.58
8.2.220.0030.00937.54
8.2.210.0060.00326.77
8.2.200.0040.00416.50
8.2.190.0110.00716.60
8.2.180.0160.00318.41
8.2.170.0150.00022.96
8.2.160.0090.01220.92
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00019.64
8.2.120.0040.00426.35
8.2.110.0090.01220.39
8.2.100.0120.00017.72
8.2.90.0030.00619.28
8.2.80.0000.00817.97
8.2.70.0000.00817.93
8.2.60.0000.00918.16
8.2.50.0000.00918.10
8.2.40.0040.00719.31
8.2.30.0040.00419.24
8.2.20.0000.00718.04
8.2.10.0060.00319.48
8.2.00.0000.00718.18
8.1.330.0120.00722.06
8.1.320.0140.00516.25
8.1.310.0060.01216.93
8.1.300.0120.00620.11
8.1.290.0090.00030.84
8.1.280.0060.01225.92
8.1.270.0000.00821.91
8.1.260.0000.00726.35
8.1.250.0100.00728.09
8.1.240.0040.00723.73
8.1.230.0110.00022.72
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0040.00418.65
8.1.160.0070.00018.92
8.1.150.0040.00418.92
8.1.140.0030.00318.91
8.1.130.0000.00720.24
8.1.120.0000.00717.43
8.1.110.0000.00717.49
8.1.100.0000.00717.49
8.1.90.0050.00317.38
8.1.80.0040.00417.49
8.1.70.0000.00717.34
8.1.60.0080.00017.53
8.1.50.0080.00017.49
8.1.40.0060.00317.54
8.1.30.0060.00317.53
8.1.20.0060.00317.64
8.1.10.0000.00917.64
8.1.00.0040.00417.58
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.40
8.0.270.0030.00317.32
8.0.260.0070.00018.49
8.0.250.0000.01017.02
8.0.240.0000.00816.93
8.0.230.0000.00816.96
8.0.220.0070.00016.84
8.0.210.0070.00016.96
8.0.200.0060.00016.96
8.0.190.0040.00416.94
8.0.180.0040.00417.03
8.0.170.0040.00416.96
8.0.160.0000.00816.91
8.0.150.0000.00716.85
8.0.140.0000.01016.93
8.0.130.0060.00013.36
8.0.120.0040.00416.85
8.0.110.0070.00016.93
8.0.100.0020.00517.01
8.0.90.0070.00017.00
8.0.80.0140.00716.92
8.0.70.0040.00416.93
8.0.60.0040.00417.02
8.0.50.0040.00416.87
8.0.30.0140.00717.09
8.0.20.0100.01117.17
8.0.10.0090.01316.95
8.0.00.0110.01016.92
7.4.330.0020.00216.83
7.4.320.0000.00716.42
7.4.300.0040.00416.65
7.4.290.0070.00016.56
7.4.280.0000.00816.54
7.4.270.0000.00816.52
7.4.260.0040.00416.52
7.4.250.0000.00816.48
7.4.240.0000.00716.62
7.4.230.0000.00916.57
7.4.220.0040.00416.26
7.4.210.0080.00816.63
7.4.200.0030.00316.66
7.4.160.0070.01416.59
7.4.150.0000.02016.42
7.4.140.0100.00817.07
7.4.130.0080.01016.48
7.4.120.0080.01216.52
7.4.110.0170.00516.49
7.4.100.0030.01516.54
7.4.90.0130.00716.52
7.4.80.0060.01417.91
7.4.70.0090.00716.43
7.4.60.0130.00516.42
7.4.50.0040.01216.51
7.4.40.0070.01116.46
7.4.30.0150.00816.48
7.4.20.0110.01116.42
7.4.10.0090.01216.39
7.4.00.0040.01015.37
7.3.330.0060.00013.05
7.3.320.0060.00013.00
7.3.310.0000.00816.36
7.3.300.0070.00016.25
7.3.290.0040.00416.13
7.3.280.0040.01116.25
7.3.270.0060.01316.31
7.3.260.0110.00716.34
7.3.250.0120.00816.29
7.3.240.0110.00916.31
7.3.230.0030.01416.31
7.3.220.0170.00416.27
7.3.210.0090.00916.30
7.3.200.0090.00816.33
7.3.190.0100.01016.39
7.3.180.0050.01316.51
7.3.170.0100.00716.29
7.3.160.0110.00716.22
7.3.150.0060.01416.36
7.3.140.0100.01016.22
7.3.130.0000.01716.28
7.3.120.0100.00815.54
7.3.110.0070.01115.40
7.3.100.0050.01015.54
7.3.90.0120.01015.68
7.3.80.0060.01015.34
7.3.70.0080.01015.48
7.3.60.0080.01015.55
7.3.50.0140.00415.46
7.3.40.0090.00715.17
7.3.30.0080.00515.26
7.3.20.0110.00716.40
7.3.10.0080.00715.96
7.3.00.0100.00715.93
7.2.340.0180.00916.34
7.2.330.0120.01216.53
7.2.320.0110.01316.59
7.2.310.0150.00816.34
7.2.300.0110.01016.38
7.2.290.0140.01416.39
7.2.280.0280.00416.35
7.2.270.0030.01616.26
7.2.260.0230.00716.28
7.2.250.0110.01415.81
7.2.240.0140.01515.76
7.2.230.0120.01215.66
7.2.220.0140.01015.69
7.2.210.0120.01415.66
7.2.200.0170.00715.71
7.2.190.0130.01015.64
7.2.180.0130.01015.71
7.2.170.0130.00615.42
7.2.160.0160.00715.54
7.2.150.0180.01316.69
7.2.140.0150.00916.58
7.2.130.0140.01316.74
7.2.120.0420.01015.74
7.2.110.0150.00716.70
7.2.100.0290.00816.75
7.2.90.0200.00616.52
7.2.80.0170.00315.82
7.2.70.0150.00916.79
7.2.60.0230.00815.81
7.2.50.0180.00716.76
7.2.40.0230.00315.96
7.2.30.0140.01216.75
7.2.20.0360.00915.85
7.2.10.0110.01116.69
7.2.00.0200.00316.68
7.1.330.0160.00815.85
7.1.320.0160.00715.80
7.1.310.0160.00615.75
7.1.300.0210.00715.62
7.1.290.0160.01015.62
7.1.280.0110.00815.77
7.1.270.0110.00815.01
7.1.260.0080.01315.08
7.1.250.0110.00815.63
7.1.240.0120.01915.40
7.1.230.0210.00615.53
7.1.220.0190.01115.47
7.1.210.0190.01215.52
7.1.200.0150.01115.55
7.1.190.0170.01015.59
7.1.180.0190.01215.55
7.1.170.0230.00815.39
7.1.160.0410.00615.46
7.1.150.0290.00315.44
7.1.140.0180.00715.49
7.1.130.0220.00915.44
7.1.120.0210.01215.49
7.1.110.0310.00415.46
7.1.100.0090.01615.36
7.1.90.0330.01315.57
7.1.80.0260.00815.45
7.1.70.0130.01615.34
7.1.60.0190.01115.56
7.1.50.0270.00415.54
7.1.40.0240.00615.57
7.1.30.0300.01315.64
7.1.20.0260.00415.33
7.1.10.0160.01415.50
7.1.00.0200.01215.31

preferences:
167.75 ms | 403 KiB | 5 Q