3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystack = array ( 'Part1', 'Part2', 'Part3', 'Part4' ); $matches = preg_grep('/(?!Part)\d/', $haystack); print_r($matches);

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.0150.00016.50
8.3.50.0110.00416.32
8.3.40.0130.00618.83
8.3.30.0120.00318.84
8.3.20.0030.00521.90
8.3.10.0040.00423.70
8.3.00.0080.00018.00
8.2.180.0150.00018.28
8.2.170.0040.01122.96
8.2.160.0170.00021.20
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00420.55
8.2.120.0070.00026.35
8.2.110.0090.00019.20
8.2.100.0070.00717.66
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0000.00817.91
8.2.50.0000.00818.10
8.2.40.0080.00020.52
8.2.30.0040.00419.12
8.2.20.0000.00718.02
8.2.10.0040.00418.07
8.2.00.0040.00417.98
8.1.280.0000.01525.92
8.1.270.0050.00320.65
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0050.00522.77
8.1.230.0040.00917.83
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0060.00317.37
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0070.00018.69
8.1.150.0040.00320.28
8.1.140.0050.00219.59
8.1.130.0000.00718.76
8.1.120.0050.00317.51
8.1.110.0000.00717.50
8.1.100.0000.00717.50
8.1.90.0070.00017.58
8.1.80.0090.00017.51
8.1.70.0070.00017.43
8.1.60.0070.00017.57
8.1.50.0000.00817.58
8.1.40.0080.00017.50
8.1.30.0040.00417.76
8.1.20.0040.00417.77
8.1.10.0040.00417.59
8.1.00.0000.00717.46
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0040.00418.38
8.0.270.0000.00717.20
8.0.260.0060.00018.34
8.0.250.0030.00317.07
8.0.240.0030.00517.00
8.0.230.0000.00717.02
8.0.220.0060.00316.97
8.0.210.0000.00716.98
8.0.200.0000.00816.91
8.0.190.0040.00417.04
8.0.180.0040.00416.89
8.0.170.0000.00716.95
8.0.160.0000.00716.96
8.0.150.0080.00016.96
8.0.140.0030.00316.84
8.0.130.0000.00713.42
8.0.120.0040.00416.78
8.0.110.0000.00716.79
8.0.100.0070.00016.76
8.0.90.0000.00716.80
8.0.80.0070.01016.88
8.0.70.0000.00916.77
8.0.60.0040.00416.93
8.0.50.0030.00316.93
8.0.30.0070.01117.06
8.0.20.0130.01017.40
8.0.10.0040.00417.04
8.0.00.0130.00417.07
7.4.330.0020.00215.55
7.4.320.0030.00316.73
7.4.300.0030.00316.73
7.4.290.0030.00316.73
7.4.280.0070.00016.71
7.4.270.0080.00016.79
7.4.260.0030.00316.72
7.4.250.0060.00316.55
7.4.240.0070.00016.79
7.4.230.0030.00316.84
7.4.220.0060.01116.77
7.4.210.0050.00816.66
7.4.200.0070.00016.58
7.4.160.0030.01316.59
7.4.150.0110.00717.40
7.4.140.0100.01217.86
7.4.130.0110.00716.53
7.4.120.0100.01016.48
7.4.110.0000.01516.55
7.4.100.0120.00616.61
7.4.90.0050.01016.64
7.4.80.0090.00919.39
7.4.70.0120.00616.51
7.4.60.0030.01316.74
7.4.50.0040.01116.48
7.4.40.0070.01016.45
7.4.30.0130.00316.61
7.4.00.0020.01415.10
7.3.330.0050.00013.19
7.3.320.0030.00313.16
7.3.310.0030.00316.43
7.3.300.0060.00016.19
7.3.290.0060.01316.28
7.3.280.0070.00916.24
7.3.270.0060.01117.40
7.3.260.0140.00516.36
7.3.250.0090.00916.27
7.3.240.0100.00816.37
7.3.230.0140.00916.31
7.3.210.0090.00916.52
7.3.200.0140.00716.52
7.3.190.0030.01316.41
7.3.180.0030.01616.35
7.3.170.0060.00916.23
7.3.160.0090.00916.72
7.3.120.0070.01014.79
7.3.110.0070.01115.15
7.3.100.0060.00914.80
7.3.90.0090.00914.73
7.3.80.0030.01014.84
7.3.70.0000.01014.75
7.3.60.0030.00614.95
7.3.50.0060.00614.71
7.3.40.0110.00314.89
7.3.30.0090.00314.89
7.3.20.0040.01116.46
7.3.10.0030.01216.84
7.3.00.0080.00616.66
7.2.330.0070.01116.66
7.2.320.0080.00916.79
7.2.310.0130.00316.76
7.2.300.0070.01016.46
7.2.290.0000.01516.59
7.2.250.0050.01015.04
7.2.240.0070.01414.87
7.2.230.0120.00615.16
7.2.220.0030.01714.84
7.2.210.0090.00614.99
7.2.200.0040.00814.94
7.2.190.0070.00715.05
7.2.180.0030.01014.82
7.2.170.0110.00315.08
7.2.60.0130.00016.98
7.2.00.0070.00719.49
7.1.330.0030.01015.80
7.1.320.0040.01115.77
7.1.310.0140.00316.13
7.1.300.0140.00015.67
7.1.290.0080.00315.74
7.1.280.0060.00316.00
7.1.270.0100.00315.87
7.1.260.0040.00715.98
7.1.200.0040.00716.00
7.1.100.0030.00917.76
7.1.70.0060.00317.39
7.1.60.2130.02033.02
7.1.50.2270.01032.69
7.1.40.2430.01032.66
7.1.30.3630.02032.68
7.1.20.2170.01032.99
7.1.10.1630.00714.64
7.1.00.2570.01714.98
7.0.200.3230.01014.90
7.0.190.2300.00714.89
7.0.180.2730.01014.41
7.0.170.3370.01014.68
7.0.160.2500.01314.47
7.0.150.1430.01014.59
7.0.140.3030.01714.80
7.0.130.2000.01014.92
7.0.120.1330.01314.67
7.0.110.1470.00714.60
7.0.100.1770.01314.61
7.0.90.0030.01014.42
7.0.80.0100.00714.60
7.0.70.2270.01314.54
7.0.60.0030.01314.32
7.0.50.0070.01314.57
7.0.40.0100.01014.72
7.0.30.0000.01714.70
7.0.20.0100.01714.79
7.0.10.0200.01014.77
7.0.00.0000.01314.61

preferences:
37.6 ms | 400 KiB | 5 Q