3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orderDoc = array("ORT", "TRI", "CONT", "RMI"); $FindDoc= array("RMI0000191","ORT0000379","ORT0000391","ORT0000392","ORT0000390","CONT0000274","CONT0000275","RMI0000192","ORT0000391"); $result =[]; foreach($orderDoc as $doc){ $temp = preg_grep("/^". preg_quote($doc) . "/", $FindDoc); sort($temp); $result = array_merge($result, $temp); } var_dump($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.130.0040.00416.78
8.3.120.0060.00318.88
8.3.110.0000.00820.94
8.3.100.0080.00824.06
8.3.90.0060.00326.77
8.3.80.0070.00320.60
8.3.70.0070.01418.56
8.3.60.0140.00718.18
8.3.50.0110.00517.35
8.3.40.0090.00618.82
8.3.30.0070.00718.82
8.3.20.0080.00020.77
8.3.10.0060.00318.77
8.3.00.0000.00821.78
8.2.250.0080.00016.63
8.2.240.0050.00519.00
8.2.230.0060.00322.58
8.2.220.0090.00037.54
8.2.210.0050.00226.77
8.2.200.0030.00616.63
8.2.190.0040.01116.63
8.2.180.0060.00925.92
8.2.170.0110.00419.08
8.2.160.0070.00722.96
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00719.77
8.2.110.0030.00619.19
8.2.100.0030.00918.03
8.2.90.0050.00318.16
8.2.80.0050.00518.98
8.2.70.0000.00917.93
8.2.60.0000.00818.22
8.2.50.0030.00518.10
8.2.40.0000.00919.33
8.2.30.0000.00819.32
8.2.20.0060.00318.07
8.2.10.0080.00019.08
8.2.00.0040.00419.57
8.1.300.0080.01118.19
8.1.290.0000.00918.88
8.1.280.0000.01525.92
8.1.270.0040.00722.10
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.19
8.1.230.0080.00420.89
8.1.220.0000.00917.74
8.1.210.0000.00818.95
8.1.200.0030.00617.38
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00818.76
8.1.160.0070.00018.89
8.1.150.0040.00418.89
8.1.140.0000.00718.83
8.1.130.0040.00417.58
8.1.120.0070.00017.61
8.1.110.0060.00317.56
8.1.100.0000.00717.57
8.1.90.0000.00817.56
8.1.80.0070.00017.63
8.1.70.0040.00417.63
8.1.60.0040.00417.73
8.1.50.0030.00517.63
8.1.40.0040.00417.66
8.1.30.0000.00817.79
8.1.20.0040.00417.80
8.1.10.0000.00817.50
8.1.00.0000.00817.47
8.0.300.0050.00220.12
8.0.290.0030.00617.00
8.0.280.0040.00418.36
8.0.270.0070.00017.14
8.0.260.0020.00517.03
8.0.250.0070.00017.06
8.0.240.0030.00317.04
8.0.230.0000.00717.15
8.0.220.0030.00317.08
8.0.210.0070.00017.13
8.0.200.0050.00316.91
8.0.190.0000.00817.10
8.0.180.0000.00716.92
8.0.170.0030.00517.04
8.0.160.0040.00417.01
8.0.150.0000.00817.00
8.0.140.0040.00416.96
8.0.130.0070.00013.39
8.0.120.0030.00616.88
8.0.110.0050.00217.00
8.0.100.0040.00416.92
8.0.90.0040.00416.89
8.0.80.0100.00716.99
8.0.70.0040.00417.03
8.0.60.0000.00816.98
8.0.50.0040.00416.82
8.0.30.0080.01017.23
8.0.20.0130.00716.96
8.0.10.0000.00717.17
8.0.00.0120.00716.79
7.4.330.0020.00215.55
7.4.320.0000.00616.63
7.4.300.0000.00616.71
7.4.290.0040.00416.80
7.4.280.0040.00416.78
7.4.270.0000.00716.73
7.4.260.0070.00016.83
7.4.250.0000.00916.77
7.4.240.0040.00416.62
7.4.230.0040.00416.79
7.4.220.0040.00416.70
7.4.210.0080.00716.71
7.4.200.0000.00716.89
7.4.160.0120.00516.66
7.4.140.0070.01817.86
7.4.130.0070.01116.68
7.4.120.0180.00616.73
7.4.110.0110.01416.70
7.4.100.0090.00816.61
7.4.90.0100.01316.55
7.4.80.0090.00919.39
7.4.70.0070.01416.77
7.4.60.0120.00816.78
7.4.50.0040.01116.53
7.4.40.0100.01316.69
7.4.10.0000.01415.27
7.4.00.0050.01215.12
7.3.330.0000.00713.12
7.3.320.0030.00313.30
7.3.310.0040.00416.40
7.3.300.0070.00016.41
7.3.290.0030.00316.24
7.3.280.0130.00316.29
7.3.260.0120.00616.62
7.3.240.0070.01016.58
7.3.230.0070.01316.36
7.3.210.0120.00916.36
7.3.200.0190.00316.63
7.3.190.0060.00916.47
7.3.180.0080.00916.83
7.3.170.0040.01216.87
7.3.160.0080.01516.45
7.3.130.0070.01114.71
7.3.120.0070.00714.91
7.3.110.0040.01415.31
7.3.100.0030.01214.77
7.3.90.0040.01215.35
7.3.80.0070.00715.14
7.3.70.0040.01414.98
7.3.60.0100.00014.66
7.3.50.0050.00715.01
7.3.40.0020.00914.91
7.3.30.0080.00514.92
7.3.20.0050.00716.71
7.3.10.0050.00716.66
7.3.00.0110.00816.71
7.2.330.0150.00316.86
7.2.320.0160.00516.90
7.2.310.0120.00616.64
7.2.300.0060.01916.71
7.2.290.0120.00616.84
7.2.260.0090.00615.26
7.2.250.0070.01015.37
7.2.240.0030.01315.33
7.2.230.0000.01715.00
7.2.220.0030.01315.27
7.2.210.0090.00315.27
7.2.200.0080.00815.31
7.2.190.0040.00815.27
7.2.180.0100.00515.12
7.2.170.0030.01015.25
7.2.160.0080.01015.06
7.2.150.0040.00917.03
7.2.140.0070.00717.17
7.2.130.0040.00717.25
7.2.120.0050.00817.24
7.2.110.0030.01017.01
7.2.100.0050.00617.20
7.2.90.0090.00416.93
7.2.80.0030.01017.13
7.2.70.0060.00916.94
7.2.60.0120.00517.20
7.2.50.0060.00816.99
7.2.40.0040.01217.19
7.2.30.0070.00917.05
7.2.20.0110.00817.10
7.2.10.0100.00317.04
7.2.00.0020.00917.19
7.1.330.0070.00715.76
7.1.320.0000.01015.65
7.1.310.0060.00616.21
7.1.300.0000.01015.93
7.1.290.0060.00615.80
7.1.280.0080.00115.90
7.1.270.0030.00916.00
7.1.260.0130.00615.97
7.1.250.0020.00916.13
7.1.240.0030.00916.01
7.1.230.0090.00616.00
7.1.220.0030.00915.82
7.1.210.0030.01315.89
7.1.200.0120.00315.98
7.1.190.0080.00416.05
7.1.180.0060.00916.14
7.1.170.0000.01716.08
7.1.160.0040.01115.83
7.1.150.0060.00916.10
7.1.140.0000.00816.08
7.1.130.0000.01115.91
7.1.120.0100.00616.11
7.1.110.0040.00415.94
7.1.100.0000.01315.93
7.1.90.0030.00815.81
7.1.80.0060.00915.84
7.1.70.0090.00615.62
7.1.60.0090.00016.17
7.1.50.0040.00715.86
7.1.40.0060.00816.04
7.1.30.0070.00715.75
7.1.20.0000.01116.00
7.1.10.0070.00716.02
7.1.00.0040.01116.02

preferences:
62.24 ms | 403 KiB | 5 Q