3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [ [ 'name' => 'this is items name', 'number' => 1, 'description' => 'this is description', 'id' => 'just some id', ], [ 'name' => 'this is items name2', 'number' => 1, 'description' => 'this is description2', 'id' => 'just some id', ], [ 'name' => 'this is items name3', 'number' => 1, 'description' => 'this is', 'id' => 'just some id', ], ]; $result = []; foreach ($list as $key => $value) { if (preg_match('/\bthis.+?description/', $value["description"])) { $result[$key] = $key; } } print_r($result);

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.0110.00718.30
8.3.50.0070.00718.35
8.3.40.0120.00318.75
8.3.30.0080.00818.70
8.3.20.0060.00319.15
8.3.10.0090.00923.51
8.3.00.0050.00323.55
8.2.180.0120.00916.63
8.2.170.0100.01322.96
8.2.160.0110.00420.53
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0090.00020.52
8.2.120.0000.00826.35
8.2.110.0060.00321.03
8.2.100.0060.00618.03
8.2.90.0040.00418.34
8.2.80.0000.00817.97
8.2.70.0000.00817.93
8.2.60.0000.00818.03
8.2.50.0000.00818.10
8.2.40.0040.00419.30
8.2.30.0080.00020.75
8.2.20.0080.00018.07
8.2.10.0050.00218.15
8.2.00.0000.00719.58
8.1.280.0130.00625.92
8.1.270.0080.00023.97
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00620.82
8.1.230.0110.00020.91
8.1.220.0030.00617.77
8.1.210.0080.00019.03
8.1.200.0080.00017.48
8.1.190.0070.00317.35
8.1.180.0060.00318.10
8.1.170.0040.00418.91
8.1.160.0000.00818.79
8.1.150.0000.00818.88
8.1.140.0040.00419.00
8.1.130.0000.00717.47
8.1.120.0070.00417.66
8.1.110.0030.00617.56
8.1.100.0040.00417.54
8.1.90.0090.00017.63
8.1.80.0030.00517.64
8.1.70.0070.00017.66
8.1.60.0060.00317.68
8.1.50.0000.00817.74
8.1.40.0040.00417.62
8.1.30.0090.00017.68
8.1.20.0030.00617.68
8.1.10.0040.00417.54
8.1.00.0040.00417.52
8.0.300.0020.00519.94
8.0.290.0070.00016.72
8.0.280.0070.00018.56
8.0.270.0000.00817.36
8.0.260.0030.00317.20
8.0.250.0000.00917.05
8.0.240.0060.00317.12
8.0.230.0000.00717.01
8.0.220.0040.00417.05
8.0.210.0070.00017.07
8.0.200.0000.00716.99
8.0.190.0030.00517.07
8.0.180.0040.00416.95
8.0.170.0000.00817.07
8.0.160.0060.00317.04
8.0.150.0000.00717.03
8.0.140.0000.00816.88
8.0.130.0030.00613.45
8.0.120.0000.00717.03
8.0.110.0040.00417.02
8.0.100.0040.00416.88
8.0.90.0040.00416.97
8.0.80.0050.01216.99
8.0.70.0020.00517.01
8.0.60.0070.00017.08
8.0.50.0040.00416.82
8.0.30.0080.00917.31
8.0.20.0160.01017.40
8.0.10.0080.00017.16
8.0.00.0160.01016.76
7.4.330.0000.00515.55
7.4.320.0030.00316.74
7.4.300.0000.00616.74
7.4.290.0030.00316.61
7.4.280.0000.00816.79
7.4.270.0080.00016.77
7.4.260.0000.00716.69
7.4.250.0030.00316.67
7.4.240.0000.00716.82
7.4.230.0040.00416.62
7.4.220.0030.00616.64
7.4.210.0080.00716.88
7.4.200.0080.00016.84
7.4.160.0110.00716.73
7.4.140.0070.01117.86
7.4.130.0170.00716.59
7.4.120.0130.00616.77
7.4.110.0060.01016.76
7.4.100.0100.00616.81
7.4.90.0090.00916.84
7.4.80.0130.00319.39
7.4.70.0100.00716.95
7.4.60.0100.00616.78
7.4.50.0090.00616.62
7.4.40.0150.00716.61
7.4.00.0120.00515.15
7.3.330.0030.00213.27
7.3.320.0030.00313.46
7.3.310.0050.00216.33
7.3.300.0000.00716.44
7.3.290.0040.00416.44
7.3.280.0060.01316.46
7.3.260.0100.00816.65
7.3.240.0050.01516.62
7.3.230.0100.00616.53
7.3.210.0040.01516.57
7.3.200.0100.01316.86
7.3.190.0000.01616.59
7.3.180.0120.01216.62
7.3.170.0100.00716.59
7.3.160.0060.01016.55
7.3.120.0070.01014.87
7.3.110.0070.00715.27
7.3.100.0040.01115.02
7.3.90.0060.01215.09
7.3.80.0080.00415.27
7.3.70.0030.01315.07
7.3.60.0130.00314.78
7.3.50.0000.01215.23
7.3.40.0030.01415.02
7.3.30.0000.01015.17
7.3.20.0100.00716.91
7.3.10.0000.01316.90
7.3.00.0000.01116.95
7.2.330.0070.01116.82
7.2.320.0060.01316.79
7.2.310.0140.00416.82
7.2.300.0140.00616.77
7.2.290.0120.00616.93
7.2.250.0080.01115.32
7.2.240.0060.01314.99
7.2.230.0090.00615.42
7.2.220.0140.00015.15
7.2.210.0030.01615.38
7.2.200.0140.00315.31
7.2.190.0060.01015.32
7.2.180.0000.01215.13
7.2.170.0040.01115.20
7.2.110.0210.00916.44
7.2.80.1760.00615.09
7.2.70.1330.00614.97
7.2.60.1330.00615.24
7.2.50.1210.00315.26
7.2.40.1890.00715.32
7.2.30.0920.01415.34
7.2.20.0920.01015.23
7.2.10.1030.01315.18
7.2.00.0930.00615.08
7.1.330.0070.00715.68
7.1.320.0030.01316.17
7.1.310.0030.01216.20
7.1.300.0030.00716.05
7.1.290.0000.01615.84
7.1.280.0140.00315.88
7.1.270.0070.00715.61
7.1.260.0100.00316.07
7.1.200.0090.00914.27
7.1.190.1400.00314.01
7.1.180.1310.01014.25
7.1.170.1500.00314.05
7.1.160.1850.00714.14
7.1.150.1840.00714.03
7.1.140.0910.01013.91
7.1.130.0940.00614.23
7.1.120.1260.00614.11
7.1.110.1460.01314.18
7.1.100.0900.01014.13
7.1.90.1090.00014.17
7.1.80.1140.00314.20
7.1.70.1850.01313.95
7.1.60.1700.00732.05
7.1.50.1710.01632.37
7.1.40.2710.01331.82
7.1.30.2130.01931.73
7.1.20.1900.01031.70
7.1.10.1800.00714.20
7.1.00.1100.00614.07

preferences:
62.79 ms | 400 KiB | 5 Q