3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userdb = [ [ '100', 'Sandra', 'urlof100' ], [ '5465', 'Stefanie', 'urlof5465' ], [ '40489', 'Michael', 'urlof40489' ] ]; function getRow($find,$db,$col){ $key = array_search($find, array_column($db, $col)); if ($key !== false) { echo "Yes, \"$find\" is in array in row $key\n"; } return $db[$key]; } $row = getRow('Sandra',$userdb,1); print_r($row);

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.3.60.0040.01118.43
8.3.50.0090.00616.64
8.3.40.0110.00418.68
8.3.30.0090.00618.76
8.3.20.0040.00418.68
8.3.10.0050.00323.65
8.3.00.0000.00819.13
8.2.180.0090.00918.40
8.2.170.0140.00022.96
8.2.160.0090.00619.11
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0050.00319.19
8.2.120.0040.00426.35
8.2.110.0030.00722.02
8.2.100.0110.00019.57
8.2.90.0030.00517.75
8.2.80.0030.00717.97
8.2.70.0040.00418.03
8.2.60.0110.00018.09
8.2.50.0040.00418.10
8.2.40.0040.00419.34
8.2.30.0000.00719.32
8.2.20.0040.00418.00
8.2.10.0050.00318.12
8.2.00.0000.00818.37
8.1.280.0070.01025.92
8.1.270.0080.00022.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.55
8.1.230.0100.00017.77
8.1.220.0000.00817.77
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0030.00517.11
8.1.180.0040.00418.10
8.1.170.0080.00018.56
8.1.160.0000.00718.86
8.1.150.0080.00018.73
8.1.140.0000.00719.07
8.1.130.0040.00419.03
8.1.120.0050.00217.34
8.1.110.0060.00317.45
8.1.100.0060.00317.36
8.1.90.0080.00017.28
8.1.80.0050.00317.38
8.1.70.0000.00717.41
8.1.60.0050.00317.51
8.1.50.0080.00017.41
8.1.40.0080.00017.41
8.1.30.0000.00917.55
8.1.20.0030.00517.57
8.1.10.0020.00517.61
8.1.00.0040.00417.48
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.34
8.0.270.0030.00317.27
8.0.260.0000.00716.82
8.0.250.0070.00016.81
8.0.240.0030.00316.99
8.0.230.0000.00716.98
8.0.220.0000.00716.79
8.0.210.0000.00716.79
8.0.200.0060.00016.95
8.0.190.0040.00416.93
8.0.180.0000.00716.85
8.0.170.0000.00816.95
8.0.160.0000.00716.96
8.0.150.0070.00016.79
8.0.140.0070.00016.86
8.0.130.0000.00613.25
8.0.120.0000.00716.88
8.0.110.0050.00216.82
8.0.100.0080.00016.75
8.0.90.0050.00316.77
8.0.80.0060.00916.86
8.0.70.0040.00416.89
8.0.60.0040.00416.95
8.0.50.0050.00316.91
8.0.30.0130.00717.30
8.0.20.0090.00917.40
8.0.10.0040.00416.87
8.0.00.0100.00916.97
7.4.330.0050.00015.55
7.4.320.0030.00316.58
7.4.300.0000.00916.48
7.4.290.0000.00716.49
7.4.280.0080.00016.59
7.4.270.0070.00016.43
7.4.260.0020.00516.48
7.4.250.0050.00216.57
7.4.240.0040.00416.41
7.4.230.0000.00716.59
7.4.220.0000.00716.64
7.4.210.0040.01216.50
7.4.200.0000.00716.63
7.4.160.0090.00816.44
7.4.150.0100.00617.40
7.4.140.0120.00917.86
7.4.130.0100.00716.51
7.4.120.0110.01116.54
7.4.110.0070.01016.41
7.4.100.0080.00816.48
7.4.90.0050.01116.45
7.4.80.0160.00019.39
7.4.70.0080.00916.54
7.4.60.0070.01016.53
7.4.50.0070.01016.49
7.4.40.0030.01316.43
7.4.00.0040.01115.11
7.3.330.0050.00013.26
7.3.320.0050.00013.24
7.3.310.0070.00016.20
7.3.300.0030.00316.35
7.3.290.0070.00816.32
7.3.280.0070.00816.31
7.3.270.0110.00717.40
7.3.260.0060.01116.45
7.3.250.0160.00316.41
7.3.240.0100.00816.52
7.3.230.0140.00316.30
7.3.210.0110.00516.53
7.3.200.0140.00316.35
7.3.190.0140.00316.48
7.3.180.0060.00916.65
7.3.170.0090.00716.33
7.3.160.0100.00516.40
7.2.330.0150.00916.76
7.2.320.0090.01216.78
7.2.310.0140.00316.80
7.2.300.0110.01116.52
7.2.290.0110.01116.45
7.2.80.0090.00916.77
7.2.60.0080.00816.98
7.2.10.0130.00619.73
7.2.00.0110.00720.05
7.1.200.0080.00315.79
7.1.130.0100.00518.96
7.1.120.0070.00718.58
7.1.110.0040.00818.39
7.1.100.0000.01218.06
7.1.90.0070.00718.08
7.1.80.0090.00317.93
7.1.70.0090.00317.15
7.1.60.0200.00735.25
7.1.50.0200.00734.97
7.1.40.0160.01034.42
7.1.30.0200.00734.49
7.1.20.0170.01034.59
7.1.10.0080.00416.46
7.1.00.0090.00616.74

preferences:
64.84 ms | 400 KiB | 5 Q