3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array =array( "123,456,789"=> "1,1,1", "333"=>"1", "777"=>"1" ); $keys = array_keys($array); $matching_key = preg_grep("/\b333\b/", $keys); $value = $array[current($matching_key)]; var_dump($matching_key);

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.0120.00316.63
8.3.50.0070.00718.14
8.3.40.0120.00618.84
8.3.30.0070.00718.83
8.3.20.0080.00021.91
8.3.10.0060.00321.85
8.3.00.0060.00319.56
8.2.180.0040.01225.92
8.2.170.0090.00619.14
8.2.160.0120.00422.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0080.00022.27
8.2.120.0080.00026.35
8.2.110.0070.00320.58
8.2.100.0110.00017.91
8.2.90.0080.00019.17
8.2.80.0090.00017.97
8.2.70.0030.00517.63
8.2.60.0050.00319.77
8.2.50.0030.00518.10
8.2.40.0080.00020.64
8.2.30.0040.00419.27
8.2.20.0000.00818.08
8.2.10.0040.00418.10
8.2.00.0040.00417.95
8.1.280.0100.01025.92
8.1.270.0080.00024.66
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0040.00420.87
8.1.230.0080.00419.22
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0000.00818.54
8.1.160.0000.00718.93
8.1.150.0000.00718.90
8.1.140.0050.00219.41
8.1.130.0030.00318.76
8.1.120.0040.00417.59
8.1.110.0000.00717.55
8.1.100.0030.00317.61
8.1.90.0030.00517.55
8.1.80.0000.00717.43
8.1.70.0030.00317.49
8.1.60.0000.00717.55
8.1.50.0030.00817.51
8.1.40.0050.00317.61
8.1.30.0000.00917.63
8.1.20.0040.00417.70
8.1.10.0000.00717.73
8.1.00.0040.00417.64
8.0.300.0060.00319.84
8.0.290.0040.00416.63
8.0.280.0070.00018.39
8.0.270.0030.00317.13
8.0.260.0050.00217.15
8.0.250.0000.00716.89
8.0.240.0030.00317.05
8.0.230.0030.00316.96
8.0.220.0040.00417.00
8.0.210.0040.00416.84
8.0.200.0040.00417.04
8.0.190.0080.00017.02
8.0.180.0040.00417.00
8.0.170.0040.00416.89
8.0.160.0040.00416.94
8.0.150.0070.00016.74
8.0.140.0000.00716.96
8.0.130.0030.00313.38
8.0.120.0040.00416.97
8.0.110.0070.00016.96
8.0.100.0000.00816.89
8.0.90.0000.00817.00
8.0.80.0070.01016.86
8.0.70.0070.00016.99
8.0.60.0070.00016.93
8.0.50.0070.00016.79
8.0.30.0090.01217.29
8.0.20.0080.01117.40
8.0.10.0080.00016.92
8.0.00.0090.00916.76
7.4.330.0060.00015.55
7.4.320.0030.00316.59
7.4.300.0030.00316.74
7.4.290.0000.00716.57
7.4.280.0050.00516.78
7.4.270.0000.00716.70
7.4.260.0070.00416.72
7.4.250.0070.00016.60
7.4.240.0040.00416.79
7.4.230.0040.00416.72
7.4.220.0060.01216.60
7.4.210.0100.00616.71
7.4.200.0040.00416.77
7.4.160.0140.00416.66
7.4.150.0140.00317.40
7.4.140.0130.00617.86
7.4.130.0150.00416.44
7.4.120.0120.01016.69
7.4.110.0190.00416.77
7.4.100.0040.01216.56
7.4.90.0130.01016.75
7.4.80.0090.01219.39
7.4.70.0070.01016.62
7.4.60.0060.00916.75
7.4.50.0090.00616.77
7.4.40.0050.01916.73
7.4.30.0110.00716.59
7.4.00.0070.01015.07
7.3.330.0030.00313.32
7.3.320.0000.00513.11
7.3.310.0000.00716.22
7.3.300.0040.00416.27
7.3.290.0100.00416.37
7.3.280.0080.00916.35
7.3.270.0100.00717.40
7.3.260.0080.01116.52
7.3.250.0080.01016.39
7.3.240.0130.00516.40
7.3.230.0120.00616.48
7.3.210.0100.00716.25
7.3.200.0150.00616.40
7.3.190.0100.01416.55
7.3.180.0070.01016.66
7.3.170.0120.00916.37
7.3.160.0030.01216.73
7.3.120.0100.00714.59
7.3.110.0130.00614.76
7.3.100.0030.01415.18
7.3.90.0060.00914.94
7.3.80.0100.00315.00
7.3.70.0030.01015.09
7.3.60.0120.00314.93
7.3.50.0040.01114.96
7.3.40.0040.01114.71
7.3.30.0030.00914.86
7.3.20.0000.01316.53
7.3.10.0100.00716.89
7.3.00.0080.00416.61
7.2.330.0070.01016.60
7.2.320.0080.00816.55
7.2.310.0110.00616.79
7.2.300.0130.01016.53
7.2.290.0100.01316.75
7.2.250.0000.01215.19
7.2.240.0030.01314.96
7.2.230.0060.00615.14
7.2.220.0070.01114.96
7.2.210.0090.00614.85
7.2.200.0070.01014.85
7.2.190.0050.00514.86
7.2.180.0060.00315.19
7.2.170.0100.01015.18
7.2.60.0120.00916.75
7.2.50.0070.01016.96
7.2.00.0120.00919.29
7.1.330.0070.00416.07
7.1.320.0070.01115.75
7.1.310.0000.00815.86
7.1.300.0030.00615.57
7.1.290.0100.00715.79
7.1.280.0030.01216.15
7.1.270.0070.00715.78
7.1.260.0070.00315.79
7.1.200.0040.00715.98
7.1.70.0040.00417.40
7.1.60.0060.00617.63
7.1.50.0200.01734.54
7.1.40.0200.01734.20
7.1.30.0200.01334.17
7.1.20.0170.01334.51
7.1.10.0070.01316.81
7.1.00.0000.01016.75
7.0.200.0090.00616.70
7.0.190.0100.00716.45
7.0.180.0070.00716.19
7.0.170.0000.01316.24
7.0.160.0030.01016.39
7.0.150.0030.01016.28
7.0.140.0000.01316.41
7.0.130.0000.01316.50
7.0.120.0000.01316.34
7.0.110.0030.01716.39
7.0.100.0070.01016.18
7.0.90.0000.01716.25
7.0.80.0070.01016.51
7.0.70.0030.01016.31
7.0.60.0100.00716.36
7.0.50.0070.01016.37
7.0.40.0100.00316.48
7.0.30.0070.01016.52
7.0.20.0030.01016.42
7.0.10.0000.01316.43
7.0.00.0100.00316.42

preferences:
58.29 ms | 401 KiB | 5 Q