3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array('name' => 'number1', 'number' => '0612345675'), array('name' => 'number2', 'number' => '0634345675'), array('name' => 'number3', 'number' => '0634378675'), array('name' => 'number4', 'number' => '0634378675'), ); $valueToFind = '0634378675'; $matchedArray = array(); foreach($array as $arr){ if($valueToFind == $arr['number']){ $matchedArray[] = $arr; } } if( count($matchedArray) > 0){ echo "match found"; echo PHP_EOL; print_r($matchedArray); }

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.120.0160.00523.77
8.4.110.0100.01019.00
8.4.100.0130.00718.93
8.4.90.0130.00720.40
8.4.80.0100.00818.80
8.4.70.0100.01018.70
8.4.60.0090.00618.65
8.4.50.0060.01419.40
8.4.40.0040.00417.52
8.4.30.0130.00620.59
8.4.20.0110.00820.70
8.4.10.0100.01019.66
8.3.250.0120.00518.80
8.3.240.0110.00817.04
8.3.230.0100.00916.48
8.3.220.0100.00819.18
8.3.210.0040.00416.78
8.3.200.0060.00316.68
8.3.190.0080.01118.96
8.3.180.0100.00916.86
8.3.170.0140.00416.79
8.3.160.0170.00317.21
8.3.150.0000.00818.77
8.3.140.0110.00716.62
8.3.130.0000.00816.49
8.3.120.0120.00618.86
8.3.110.0110.00420.94
8.3.100.0030.00524.06
8.3.90.0000.00826.77
8.3.80.0060.00318.43
8.3.70.0140.00716.75
8.3.60.0110.00718.55
8.3.50.0060.01016.43
8.3.40.0140.00318.64
8.3.30.0110.00718.84
8.3.20.0040.00420.90
8.3.10.0080.00020.29
8.3.00.0000.00723.65
8.2.290.0080.00218.77
8.2.280.0120.00718.14
8.2.270.0110.00717.21
8.2.260.0100.00716.48
8.2.250.0030.00618.86
8.2.240.0090.00017.04
8.2.230.0000.00822.58
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0040.00416.75
8.2.190.0120.00916.58
8.2.180.0090.00925.92
8.2.170.0150.00019.09
8.2.160.0070.01122.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00520.93
8.2.110.0060.00319.39
8.2.100.0090.00319.64
8.2.90.0040.00419.36
8.2.80.0040.00417.97
8.2.70.0030.00717.75
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0000.00718.29
8.2.30.0030.00618.22
8.2.20.0040.00418.19
8.2.10.0000.00818.93
8.2.00.0070.00019.56
8.1.330.0120.00816.07
8.1.320.0150.00416.11
8.1.310.0090.00916.54
8.1.300.0090.00017.89
8.1.290.0080.00030.84
8.1.280.0090.00625.92
8.1.270.0030.00622.43
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00321.37
8.1.230.0110.00022.07
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0080.00018.57
8.1.160.0000.00918.80
8.1.150.0050.00318.88
8.1.140.0040.00418.76
8.1.130.0050.00320.01
8.1.120.0060.00317.45
8.1.110.0040.00417.46
8.1.100.0000.00717.42
8.1.90.0000.00817.48
8.1.80.0000.00717.34
8.1.70.0060.00317.52
8.1.60.0060.00317.61
8.1.50.0040.00417.45
8.1.40.0030.00517.45
8.1.30.0030.00617.54
8.1.20.0030.00517.66
8.1.10.0040.00417.57
8.1.00.0040.00417.40
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.29
8.0.270.0000.00817.17
8.0.260.0060.00018.51
8.0.250.0000.00816.95
8.0.240.0000.00717.02
8.0.230.0070.00016.96
8.0.220.0030.00316.79
8.0.210.0000.00816.89
8.0.200.0050.00216.91
8.0.190.0000.00816.96
8.0.180.0040.00416.79
8.0.170.0030.00616.91
8.0.160.0040.00416.80
8.0.150.0050.00216.86
8.0.140.0070.00016.76
8.0.130.0030.00313.34
8.0.120.0030.00516.89
8.0.110.0070.00016.68
8.0.100.0040.00416.88
8.0.90.0000.00716.96
8.0.80.0110.00416.84
8.0.70.0000.00716.76
8.0.60.0040.00416.95
8.0.50.0080.00016.93
8.0.30.0160.00317.15
8.0.20.0160.00316.73
8.0.10.0040.00417.04
8.0.00.0110.01016.84
7.4.330.0050.00015.55
7.4.320.0030.00316.47
7.4.300.0040.00416.50
7.4.290.0080.00016.52
7.4.280.0040.00316.51
7.4.270.0070.00016.43
7.4.260.0070.00016.48
7.4.250.0030.00516.41
7.4.240.0000.00716.52
7.4.230.0030.00316.46
7.4.220.0040.00416.45
7.4.210.0030.01216.60
7.4.200.0000.00716.68
7.4.160.0060.01016.47
7.4.140.0090.00817.86
7.4.130.0170.00016.41
7.4.120.0060.01116.50
7.4.110.0170.02316.44
7.4.100.0100.00716.43
7.4.90.0140.00416.48
7.4.80.0070.01719.39
7.4.70.0130.00416.66
7.4.60.0070.01516.59
7.4.50.0070.00716.54
7.4.40.0130.00316.59
7.4.00.0090.00714.70
7.3.330.0000.00613.31
7.3.320.0080.00013.16
7.3.310.0000.00716.47
7.3.300.0030.00316.32
7.3.290.0060.00916.22
7.3.280.0070.01116.22
7.3.260.0110.00916.36
7.3.240.0090.01116.42
7.3.230.0150.00416.36
7.3.210.0100.00716.52
7.3.200.0060.01016.52
7.3.190.0120.00616.25
7.3.180.0030.01316.56
7.3.170.0060.01216.52
7.3.160.0080.00816.64
7.3.120.0120.00614.61
7.3.110.0070.01015.07
7.3.100.0030.01015.01
7.3.90.0070.00714.93
7.3.80.0090.00914.63
7.3.70.0100.00314.22
7.3.60.0070.01014.64
7.3.50.0120.00514.88
7.3.40.0070.01214.68
7.3.30.0090.00714.83
7.3.20.0070.01015.62
7.3.10.0080.01315.69
7.3.00.0050.01015.84
7.2.330.0120.00816.75
7.2.320.0070.01016.80
7.2.310.0070.01016.68
7.2.300.0070.01016.79
7.2.290.0090.00916.45
7.2.250.0040.01115.00
7.2.240.0130.00714.91
7.2.230.0120.00314.72
7.2.220.0060.00314.99
7.2.210.0030.01014.84
7.2.200.0000.00915.26
7.2.190.0000.01614.94
7.2.180.0040.00815.06
7.2.170.0100.00715.09
7.2.160.0030.01315.00
7.2.150.0120.00815.27
7.2.140.0110.01114.97
7.2.130.0170.00615.10
7.2.120.0170.00015.04
7.2.110.0150.00415.19
7.2.100.0060.01315.09
7.2.90.0060.01215.21
7.2.80.0160.00314.89
7.2.70.0140.01115.04
7.2.60.0190.01215.16
7.2.50.0210.00715.33
7.2.40.0100.02315.00
7.2.30.0110.01515.32
7.2.20.0130.00015.25
7.2.10.0160.01615.21
7.2.00.0190.00415.19
7.1.330.0100.00315.93
7.1.320.0040.00715.52
7.1.310.0000.01215.43
7.1.300.0080.00615.86
7.1.290.0080.00415.82
7.1.280.0070.00514.77
7.1.270.0070.00814.93
7.1.260.0060.01015.02
7.1.250.0810.00714.20

preferences:
123.58 ms | 403 KiB | 5 Q