3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/,\s?/'; $filenames = 'filename.png,filename.png,filename.png,filename.png,file name.png'; var_dump(preg_split($pattern, $filenames)); $filenames = 'filename.png, filename2.png, filename3.png, filename4.png, file name5.png'; var_dump(preg_split($pattern, $filenames));

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.0060.00318.41
8.3.120.0090.00918.98
8.3.110.0060.00320.94
8.3.100.0070.00424.06
8.3.90.0120.00326.77
8.3.80.0090.00018.43
8.3.70.0070.01118.43
8.3.60.0100.01016.48
8.3.50.0070.00916.74
8.3.40.0150.00018.61
8.3.30.0150.00318.85
8.3.20.0070.00020.33
8.3.10.0050.00323.61
8.3.00.0080.00023.66
8.2.250.0050.00318.76
8.2.240.0040.01119.16
8.2.230.0030.00522.58
8.2.220.0050.00337.54
8.2.210.0030.01326.77
8.2.200.0000.00916.63
8.2.190.0140.00716.63
8.2.180.0110.01118.41
8.2.170.0070.00722.96
8.2.160.0070.00719.19
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0060.00320.58
8.2.110.0070.00320.84
8.2.100.0030.00917.89
8.2.90.0080.00017.91
8.2.80.0080.00017.97
8.2.70.0000.00817.80
8.2.60.0060.00317.91
8.2.50.0030.00518.10
8.2.40.0040.00420.34
8.2.30.0040.00419.27
8.2.20.0040.00417.89
8.2.10.0050.00217.93
8.2.00.0040.00417.89
8.1.300.0030.01218.25
8.1.290.0090.00030.84
8.1.280.0060.00925.92
8.1.270.0060.00323.96
8.1.260.0030.00726.35
8.1.250.0080.00028.09
8.1.240.0040.00423.77
8.1.230.0040.00820.97
8.1.220.0000.00817.74
8.1.210.0040.00418.85
8.1.200.0040.00417.48
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0040.00418.79
8.1.150.0070.00018.88
8.1.140.0050.00318.97
8.1.130.0000.00817.41
8.1.120.0030.00317.44
8.1.110.0000.00717.54
8.1.100.0000.00717.43
8.1.90.0030.00317.58
8.1.80.0050.00317.55
8.1.70.0070.00017.46
8.1.60.0000.00817.60
8.1.50.0060.00317.51
8.1.40.0030.00617.50
8.1.30.0050.00317.63
8.1.20.0060.00317.61
8.1.10.0040.00417.57
8.1.00.0030.00617.50
8.0.300.0030.00619.73
8.0.290.0060.00316.75
8.0.280.0070.00018.32
8.0.270.0000.00717.23
8.0.260.0030.00317.01
8.0.250.0030.00316.95
8.0.240.0000.00816.93
8.0.230.0030.00317.05
8.0.220.0030.00316.94
8.0.210.0000.00716.88
8.0.200.0000.00717.07
8.0.190.0040.00417.01
8.0.180.0040.00416.88
8.0.170.0000.00717.03
8.0.160.0030.00516.92
8.0.150.0020.00516.87
8.0.140.0030.00616.96
8.0.130.0000.00513.42
8.0.120.0040.00416.96
8.0.110.0000.00816.92
8.0.100.0050.00316.93
8.0.90.0050.00216.86
8.0.80.0090.01216.95
8.0.70.0070.00016.86
8.0.60.0040.00416.86
8.0.50.0080.00017.03
8.0.30.0130.00717.12
8.0.20.0140.00617.40
8.0.10.0070.00016.93
8.0.00.0180.00016.74
7.4.330.0000.00415.55
7.4.320.0000.00816.57
7.4.300.0040.00416.68
7.4.290.0070.00316.77
7.4.280.0040.00416.77
7.4.270.0070.00016.75
7.4.260.0030.00516.73
7.4.250.0070.00016.73
7.4.240.0000.00816.76
7.4.230.0070.00016.85
7.4.220.0060.01316.55
7.4.210.0070.01016.81
7.4.200.0030.00316.77
7.4.160.0070.01016.59
7.4.150.0180.00617.40
7.4.140.0130.00817.86
7.4.130.0110.00716.61
7.4.120.0090.01416.60
7.4.110.0130.00616.72
7.4.100.0130.01316.69
7.4.90.0110.00816.46
7.4.80.0120.00619.39
7.4.70.0030.01316.61
7.4.60.0140.01416.60
7.4.50.0040.01216.38
7.4.40.0160.00316.58
7.4.30.0030.01516.57
7.4.00.0100.00315.12
7.3.330.0000.00513.13
7.3.320.0000.00613.04
7.3.310.0030.00316.15
7.3.300.0000.00716.18
7.3.290.0000.00716.31
7.3.280.0080.00716.26
7.3.270.0150.00417.40
7.3.260.0130.00716.51
7.3.250.0120.00916.59
7.3.240.0100.00816.29
7.3.230.0070.01416.70
7.3.210.0140.00516.52
7.3.200.0080.00816.52
7.3.190.0060.01016.32
7.3.180.0060.01216.51
7.3.170.0140.00316.29
7.3.160.0090.01316.73
7.2.330.0060.01216.59
7.2.320.0060.01516.46
7.2.310.0100.01116.70
7.2.300.0100.01416.65
7.2.290.0090.01316.61
7.2.60.0040.01116.81
7.2.50.0030.01016.57
7.1.200.0000.01116.00
7.1.110.0410.01216.36
7.1.100.0340.00916.33
7.1.90.0330.01216.11
7.1.80.0430.01116.45
7.1.70.0250.00715.52
7.1.60.0440.01333.43
7.1.50.0530.01432.81
7.1.40.0480.02432.87
7.1.30.0520.01232.74
7.1.20.0480.01032.93
7.1.10.0240.00914.81
7.1.00.0330.00315.06
7.0.250.0460.01016.01
7.0.240.0330.01016.06
7.0.230.0470.00816.08
7.0.220.0370.00616.04
7.0.210.0300.00714.60
7.0.200.0410.01514.72
7.0.190.0350.01214.88
7.0.180.0300.01314.47
7.0.170.0320.01114.55
7.0.160.0260.01014.45
7.0.150.0300.00414.43
7.0.140.0310.00814.44
7.0.130.0430.01114.80
7.0.120.0280.01414.71
7.0.110.0770.00714.68
7.0.100.0230.01314.60
7.0.90.0230.01014.55
7.0.80.0390.01314.52
7.0.70.0380.01414.77
7.0.60.0380.01014.59
7.0.50.0350.01614.55
7.0.40.0260.00414.88
7.0.30.0340.01214.68
7.0.20.0170.01314.65
7.0.10.0250.00914.75
7.0.00.0220.01214.82

preferences:
62.18 ms | 403 KiB | 5 Q