3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 91 => array ( 'description' => 'Charged', 'boundingPoly' => array ( 'vertices' => array ( 0 => array ( 'x' => 244, 'y' => 438 ), 1 => array ( 'x' => 287, 'y' => 438 ), 2 => array ( 'x' => 287, 'y' => 452 ), 3 => array ( 'x' => 244, 'y' => 452 ), ')))' ) ) ) ); $x = 244; foreach ($array as $box) { if (in_array($x, array_column($box['boundingPoly']['vertices'], 'x'))) { $descr = $box['description']; break; } } if (isset($descr)) { echo "found $descr with x = $x\n"; }

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.130.0110.00818.65
8.4.120.0140.00624.14
8.4.110.0070.00318.71
8.4.100.0140.00917.72
8.4.90.0140.00618.49
8.4.80.0110.01019.53
8.4.70.0140.00518.01
8.4.60.0080.01218.74
8.4.50.0100.00918.99
8.4.40.0030.01617.66
8.4.30.0150.00018.78
8.4.20.0100.01017.57
8.4.10.0060.00317.63
8.3.260.0080.00216.57
8.3.250.0140.00518.87
8.3.240.0070.00819.08
8.3.230.0130.00616.59
8.3.220.0120.00817.08
8.3.210.0090.00818.29
8.3.200.0050.00416.73
8.3.190.0130.00517.09
8.3.180.0060.00916.71
8.3.170.0080.00816.56
8.3.160.0060.00317.13
8.3.150.0070.01118.22
8.3.140.0040.01416.98
8.3.130.0040.00418.51
8.3.120.0060.01320.59
8.3.110.0030.00620.94
8.3.100.0030.00624.06
8.3.90.0060.00826.77
8.3.80.0050.00516.75
8.3.70.0170.00016.58
8.3.60.0110.00716.50
8.3.50.0080.00823.56
8.3.40.0090.00618.86
8.3.30.0110.00418.67
8.3.20.0050.00320.73
8.3.10.0070.00020.21
8.3.00.0040.00419.02
8.2.290.0110.00820.37
8.2.280.0050.00418.23
8.2.270.0000.00717.09
8.2.260.0040.00416.53
8.2.250.0080.00018.15
8.2.240.0030.00620.74
8.2.230.0100.00722.58
8.2.220.0040.00437.54
8.2.210.0090.00626.77
8.2.200.0090.00018.17
8.2.190.0070.01516.58
8.2.180.0000.01425.92
8.2.170.0070.00718.91
8.2.160.0100.00322.21
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0050.00326.16
8.2.110.0060.00322.13
8.2.100.0000.01017.91
8.2.90.0040.00417.61
8.2.80.0040.00418.73
8.2.70.0060.00317.93
8.2.60.0000.00818.22
8.2.50.0000.00819.21
8.2.40.0070.00021.20
8.2.30.0050.00319.26
8.2.20.0000.00818.06
8.2.10.0080.00021.09
8.2.00.0050.00219.30
8.1.330.0090.00322.03
8.1.320.0140.00616.05
8.1.310.0070.00018.53
8.1.300.0090.00019.86
8.1.290.0000.01130.84
8.1.280.0100.00725.92
8.1.270.0000.00821.99
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.83
8.1.230.0080.00420.87
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0090.00017.13
8.1.180.0040.00418.90
8.1.170.0030.00618.57
8.1.160.0000.00719.09
8.1.150.0000.00718.90
8.1.140.0030.00618.93
8.1.130.0000.00720.17
8.1.120.0030.00317.36
8.1.110.0040.00417.47
8.1.100.0000.00717.46
8.1.90.0080.00017.34
8.1.80.0050.00317.42
8.1.70.0050.00317.40
8.1.60.0000.00817.61
8.1.50.0000.00917.40
8.1.40.0040.00417.44
8.1.30.0050.00317.53
8.1.20.0070.00017.69
8.1.10.0030.00717.60
8.1.00.0000.00817.54
8.0.300.0100.00318.77
8.0.290.0000.00816.75
8.0.280.0000.00718.41
8.0.270.0040.00416.77
8.0.260.0000.00719.99
8.0.250.0060.00016.82
8.0.240.0030.00316.97
8.0.230.0030.00316.94
8.0.220.0000.00716.85
8.0.210.0000.00716.93
8.0.200.0060.00316.94
8.0.190.0000.00716.82
8.0.180.0040.00416.88
8.0.170.0040.00416.89
8.0.160.0000.00716.88
8.0.150.0030.00516.80
8.0.140.0050.00216.83
8.0.130.0050.00013.29
8.0.120.0040.00416.76
8.0.110.0000.00716.76
8.0.100.0000.00716.68
8.0.90.0030.00616.84
8.0.80.0110.00416.85
8.0.70.0070.00016.89
8.0.60.0000.00716.85
8.0.50.0070.00016.70
8.0.30.0110.00617.05
8.0.20.0070.01316.98
8.0.10.0050.00316.97
8.0.00.0120.00916.64
7.4.330.0030.00315.55
7.4.320.0000.00616.52
7.4.300.0000.00616.59
7.4.290.0000.00816.46
7.4.280.0040.00416.50
7.4.270.0040.00416.65
7.4.260.0000.00513.26
7.4.250.0000.00716.56
7.4.240.0020.00516.60
7.4.230.0000.00716.43
7.4.220.0030.00416.71
7.4.210.0130.00516.68
7.4.200.0000.00716.60
7.4.130.0070.01316.53
7.4.120.0100.00716.43
7.4.110.0090.00916.63
7.4.100.0070.01416.54
7.4.90.0070.01116.40
7.4.80.0130.01019.39
7.4.70.0120.00916.63
7.4.60.0060.01216.42
7.4.50.0030.01216.53
7.4.40.0080.00816.70
7.4.20.0120.00816.48
7.4.10.0130.00316.16
7.4.00.0030.01116.41
7.3.330.0000.00716.37
7.3.320.0000.00613.22
7.3.310.0070.00016.26
7.3.300.0040.00416.21
7.3.290.0070.00816.29
7.3.280.0090.00616.39
7.3.260.0080.00916.52
7.3.240.0080.01016.42
7.3.230.0070.01116.30
7.3.210.0100.00716.57
7.3.200.0150.00616.78
7.3.190.0140.00316.57
7.3.180.0150.00616.30
7.3.170.0030.01716.42
7.3.160.0070.01016.27
7.3.140.0090.01116.49
7.3.130.0120.00616.45
7.3.120.0080.00816.40
7.3.110.0070.01416.54
7.3.100.0130.01016.30
7.3.90.0160.00316.48
7.3.80.0030.01616.34
7.3.70.0130.01016.38
7.3.60.0070.01016.21
7.3.50.0090.01116.45
7.3.40.0120.00316.24
7.3.30.0130.00416.50
7.3.20.0030.01216.39
7.3.10.0100.00616.23
7.3.00.0030.01816.23
7.2.330.0130.00616.66
7.2.320.0080.00816.58
7.2.310.0100.00716.58
7.2.300.0070.01016.41
7.2.290.0100.00616.54
7.2.270.0100.01016.60
7.2.260.0060.00916.65
7.2.250.0090.01516.74
7.2.240.0080.01316.61
7.2.230.0040.01316.45
7.2.220.0100.01016.74
7.2.210.0140.00716.44
7.2.200.0090.01516.65
7.2.190.0040.01716.53
7.2.180.0030.01916.55
7.2.170.0100.00716.58
7.2.160.0030.01316.61
7.2.150.0070.01016.70
7.2.140.0110.01116.50
7.2.130.0150.00916.57
7.2.120.0120.00616.76
7.2.110.0040.01216.66
7.2.100.0100.01016.73
7.2.90.0040.01216.65
7.2.80.0070.01016.65
7.2.70.0060.00916.59
7.2.60.0100.00616.62
7.2.50.0090.00616.51
7.2.40.0070.01016.63
7.2.30.0060.00916.69
7.2.20.0070.01016.49
7.2.10.0060.01016.69
7.2.00.0130.00316.65
5.2.170.0140.00011.95

preferences:
124.86 ms | 403 KiB | 5 Q