3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = ["12345", "12346", "12347", "12398"]; $input = "12498"; $arr = preg_grep("/". substr($input,0,3) . "/", $numbers); Var_dump($arr);

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.68
8.3.50.0090.01218.23
8.3.40.0120.00318.84
8.3.30.0110.00418.70
8.3.20.0040.00418.72
8.3.10.0000.00821.46
8.3.00.0040.00420.64
8.2.180.0070.01516.75
8.2.170.0000.01522.96
8.2.160.0120.00321.06
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00019.83
8.2.120.0040.00426.35
8.2.110.0000.01122.14
8.2.100.0080.00417.57
8.2.90.0030.00617.97
8.2.80.0030.00622.13
8.2.70.0000.00817.88
8.2.60.0030.00517.63
8.2.50.0040.00417.75
8.2.40.0050.00519.60
8.2.30.0040.00419.28
8.2.20.0000.00718.14
8.2.10.0000.00718.05
8.2.00.0090.00017.73
8.1.280.0040.01125.92
8.1.270.0030.00518.93
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00820.69
8.1.230.0080.00422.13
8.1.220.0000.00817.76
8.1.210.0030.00518.83
8.1.200.0050.00317.48
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0080.00019.26
8.1.160.0040.00418.94
8.1.150.0030.00518.90
8.1.140.0000.00722.07
8.1.130.0040.00420.09
8.1.120.0030.00517.51
8.1.110.0040.00417.61
8.1.100.0000.00817.64
8.1.90.0030.00517.63
8.1.80.0000.00717.55
8.1.70.0030.00317.57
8.1.60.0050.00317.75
8.1.50.0040.00417.67
8.1.40.0080.00017.64
8.1.30.0000.00817.80
8.1.20.0040.00417.81
8.1.10.0040.00417.60
8.1.00.0080.00017.45
8.0.300.0040.00419.75
8.0.290.0040.00416.88
8.0.280.0040.00418.46
8.0.270.0000.00717.23
8.0.260.0070.00018.46
8.0.250.0030.00317.03
8.0.240.0000.00717.07
8.0.230.0060.00317.05
8.0.220.0000.00917.04
8.0.210.0000.00816.99
8.0.200.0080.00016.98
8.0.190.0070.00017.08
8.0.180.0030.00517.10
8.0.170.0000.00816.96
8.0.160.0070.00017.04
8.0.150.0080.00016.98
8.0.140.0000.00717.00
8.0.130.0060.00013.42
8.0.120.0080.00017.09
8.0.110.0000.00717.03
8.0.100.0040.00417.02
8.0.90.0080.00017.03
8.0.80.0080.00917.02
8.0.70.0000.00817.05
8.0.60.0080.00016.86
8.0.50.0050.00216.76
8.0.30.0120.00517.25
8.0.20.0110.01117.40
8.0.10.0070.00016.94
8.0.00.0130.01116.90
7.4.330.0060.00015.55
7.4.320.0030.00316.66
7.4.300.0000.00616.62
7.4.290.0000.00716.73
7.4.280.0000.00716.75
7.4.270.0000.00816.61
7.4.260.0070.00016.71
7.4.250.0040.00416.66
7.4.240.0000.00816.65
7.4.230.0030.00516.64
7.4.220.0040.00416.51
7.4.210.0140.00516.65
7.4.200.0000.00716.77
7.4.160.0070.01016.58
7.4.140.0110.00917.86
7.4.130.0190.00316.64
7.4.120.0090.01316.62
7.4.110.0070.01016.41
7.4.100.0080.00816.59
7.4.90.0130.00916.72
7.4.80.0120.01019.39
7.4.70.0090.01216.59
7.4.60.0000.01616.58
7.4.50.0080.00616.43
7.4.40.0060.01216.61
7.4.00.0130.00315.29
7.3.330.0050.00013.26
7.3.320.0050.00013.25
7.3.310.0000.01016.38
7.3.300.0070.00016.24
7.3.290.0030.00316.23
7.3.280.0120.00416.37
7.3.260.0110.00916.45
7.3.240.0090.00816.70
7.3.230.0030.01316.72
7.3.210.0100.00716.40
7.3.200.0030.01316.30
7.3.190.0110.00716.73
7.3.180.0060.02116.52
7.3.170.0070.01616.67
7.3.160.0070.01016.61
7.3.10.0100.00616.68
7.3.00.0100.00716.77
7.2.330.0130.01216.86
7.2.320.0080.01516.84
7.2.310.0070.01016.65
7.2.300.0120.00916.45
7.2.290.0110.01116.89
7.2.130.0070.01017.07
7.2.120.0080.00817.05
7.2.110.0470.00915.75
7.2.100.0420.00515.56
7.2.90.0470.00915.69
7.2.80.0360.00915.54
7.2.70.0410.00515.92
7.2.60.0400.00915.90
7.2.50.0420.00815.93
7.2.40.0360.00515.96
7.2.30.0530.00616.11
7.2.20.0200.01016.00
7.2.10.0330.00716.01
7.2.00.0570.01415.95
7.1.250.0000.01416.04
7.1.230.1330.01013.79
7.1.220.1150.00313.54
7.1.210.0860.00313.80
7.1.200.0770.00613.86
7.1.190.0620.01313.88
7.1.180.0730.00313.75
7.1.170.0770.00713.93
7.1.160.0800.00013.93
7.1.150.0720.00413.93
7.1.140.0850.00313.81
7.1.130.0630.00913.81
7.1.120.0600.01013.70
7.1.110.0860.00313.66
7.1.100.0640.01613.86
7.1.90.0790.00713.71
7.1.80.0640.00613.61
7.1.70.0990.00313.46
7.1.60.0750.01331.29
7.1.50.1410.01031.16
7.1.40.1180.00731.89
7.1.30.1180.01031.45
7.1.20.1150.01631.93
7.1.10.1210.01013.92
7.1.00.0810.00713.92
5.6.380.0100.01013.78

preferences:
72.58 ms | 401 KiB | 5 Q