3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = 'pink'; $test = array( 'name_01' => array('yellow', 'red', 'blue', 'black', 'white', 'purple'), 'name_02' => array('red', 'blue', 'white', 'green'), 'name_03' => array('blue', 'pink', 'purple', 'blue'), 'name_04' => array('white', 'black', 'red'), 'name_05' => array('yellow', 'white', 'pink', 'black') ); foreach($test as $key=>$arr){ if(in_array($search,$arr)){ echo $key.PHP_EOL; } }

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.0110.01020.73
8.4.110.0080.01418.78
8.4.100.0140.00617.71
8.4.90.0050.00618.59
8.4.80.0140.00617.72
8.4.70.0100.00917.64
8.4.60.0130.00818.67
8.4.50.0100.00922.52
8.4.40.0000.01617.58
8.4.30.0150.00420.14
8.4.20.0030.01317.82
8.4.10.0090.00619.35
8.3.250.0050.00318.63
8.3.240.0120.00716.39
8.3.230.0030.00616.62
8.3.220.0140.00617.18
8.3.210.0100.01016.44
8.3.200.0090.00916.23
8.3.190.0050.00416.97
8.3.180.0120.00618.90
8.3.170.0070.01016.92
8.3.160.0110.00718.81
8.3.150.0110.00716.51
8.3.140.0120.00616.58
8.3.130.0050.00318.27
8.3.120.0080.00819.09
8.3.110.0120.00620.94
8.3.100.0070.00716.19
8.3.90.0080.00026.77
8.3.80.0090.00020.24
8.3.70.0100.01318.18
8.3.60.0120.00616.50
8.3.50.0070.00719.94
8.3.40.0120.00621.53
8.3.30.0170.00318.59
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0090.00920.50
8.2.280.0110.00816.49
8.2.270.0120.00318.40
8.2.260.0080.00017.23
8.2.250.0050.00316.46
8.2.240.0110.00717.07
8.2.230.0040.00422.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0060.00316.25
8.2.190.0140.00716.58
8.2.180.0090.00925.92
8.2.170.0110.00418.64
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00419.63
8.2.110.0090.00320.39
8.2.100.0080.00417.66
8.2.90.0030.00619.36
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00417.63
8.2.50.0050.00317.98
8.2.40.0040.00417.84
8.2.30.0050.00217.96
8.2.20.0000.00720.48
8.2.10.0000.00817.80
8.2.00.0040.00419.20
8.1.330.0100.00422.00
8.1.320.0100.00915.77
8.1.310.0080.00818.57
8.1.300.0080.00017.99
8.1.290.0040.00430.84
8.1.280.0070.01025.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0070.00328.09
8.1.240.0090.00022.03
8.1.230.0070.00422.65
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.22
8.1.180.0080.00018.10
8.1.170.0000.00717.62
8.1.160.0050.00618.93
8.1.150.0050.00218.69
8.1.140.0040.00417.40
8.1.130.0000.00718.80
8.1.120.0030.00717.34
8.1.110.0040.00417.41
8.1.100.0000.00717.32
8.1.90.0030.00317.45
8.1.80.0030.00617.48
8.1.70.0030.00317.34
8.1.60.0040.00417.50
8.1.50.0030.00517.50
8.1.40.0000.00717.51
8.1.30.0030.00717.63
8.1.20.0050.00217.62
8.1.10.0190.00517.41
8.1.00.0160.00917.27
8.0.300.0070.00021.51
8.0.290.0000.00716.59
8.0.280.0070.00018.44
8.0.270.0000.00716.85
8.0.260.0030.00318.54
8.0.250.0000.00716.92
8.0.240.0050.00316.88
8.0.230.0000.00716.92
8.0.220.0070.00016.73
8.0.210.0000.00716.89
8.0.200.0000.00716.91
8.0.190.0040.00416.88
8.0.180.0000.00716.80
8.0.170.0030.00616.82
8.0.160.0080.00016.94
8.0.150.0000.00716.84
8.0.140.0170.00316.83
8.0.130.0160.00316.80
8.0.120.0150.00316.82
8.0.110.0150.00516.70
8.0.100.0140.00616.78
8.0.90.0140.00516.77
8.0.80.0170.00416.80
8.0.70.0170.00316.80
8.0.60.0130.00816.78
8.0.50.0150.00616.84
8.0.30.0210.00016.68
8.0.20.0100.01016.84
8.0.10.0190.00016.87
8.0.00.0050.00516.99
7.4.330.0050.00015.55
7.4.320.0000.00616.49
7.4.300.0080.00016.50
7.4.290.0030.00316.55
7.4.280.0000.00716.48
7.4.270.0190.00316.37
7.4.260.0240.00016.46
7.4.250.0130.01116.52
7.4.240.0170.00516.44
7.4.230.0200.00316.58
7.4.220.0130.00516.56
7.4.210.0150.00416.46
7.4.200.0140.00516.46
7.4.190.0120.00616.53
7.4.180.0080.01216.59
7.4.160.0140.00516.43
7.4.150.0160.00316.45
7.4.140.0190.00016.33
7.4.130.0110.00916.30
7.4.120.0180.00016.48
7.4.110.0140.00416.36
7.4.100.0160.00316.51
7.4.90.0150.00616.43
7.4.80.0150.00516.44
7.4.70.0110.00716.43
7.4.60.0110.00716.46
7.4.50.0190.00016.19
7.4.40.0140.00516.23
7.4.30.0180.00016.25
7.4.20.0050.01416.30
7.4.10.0110.00816.27
7.4.00.0120.00616.33
7.3.330.0150.00616.23
7.3.320.0110.00816.09
7.3.310.0160.00316.34
7.3.300.0150.00516.16
7.3.290.0210.00016.29
7.3.280.0160.00316.22
7.3.270.0090.00916.09
7.3.260.0090.00916.39
7.3.250.0170.00416.08
7.3.240.0120.00816.23
7.3.230.0140.00516.13
7.3.220.0150.00416.14
7.3.210.0100.01016.10
7.3.200.0170.00316.02
7.3.190.0160.00416.21
7.3.180.0170.00316.17
7.3.170.0210.00016.07
7.3.160.0160.00316.02
7.3.150.0090.00916.03
7.3.140.0160.00316.29
7.3.130.0180.00316.14

preferences:
65.42 ms | 403 KiB | 5 Q