3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = '“Chess helps us overcome difficulties and sufferings,” said Unnikrishnan, taking my queen. “On a chess board you are fighting. as we are also fighting the hardships in our daily life.” he said.'; $out = preg_split('/ (?=“)/', $in, 0, PREG_SPLIT_NO_EMPTY); //$out = preg_match_all('/“.+?(?= “|$)/', $in, $out) ? $out[0] : null; $find = '/[“”]/u'; // unicode flag is essential $replace = '"'; $out = preg_replace($find, $replace, $out); // replace curly quotes with standard double quotes var_export($out);

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.5.10.0080.01016.81
8.5.00.0120.01020.11
8.4.150.0020.00114.05
8.4.140.0120.00917.96
8.4.130.0130.00218.86
8.4.120.0130.00723.83
8.4.110.0140.00618.98
8.4.100.0150.00619.25
8.4.90.0060.00320.33
8.4.80.0120.00817.86
8.4.70.0130.00817.93
8.4.60.0050.00618.79
8.4.50.0110.00818.46
8.4.40.0110.00919.59
8.4.30.0070.00318.57
8.4.20.0060.00318.88
8.4.10.0070.01419.44
8.3.280.0100.00918.63
8.3.270.0130.00716.89
8.3.260.0160.00516.98
8.3.250.0130.00618.68
8.3.240.0130.00616.91
8.3.230.0110.00417.07
8.3.220.0060.00217.02
8.3.210.0040.00516.91
8.3.200.0100.01116.61
8.3.190.0130.00617.16
8.3.180.0130.00320.37
8.3.170.0090.00920.76
8.3.160.0130.00716.60
8.3.150.0000.01418.72
8.3.140.0110.00717.29
8.3.130.0040.00416.70
8.3.120.0030.00620.57
8.3.110.0030.00618.59
8.3.100.0030.01216.75
8.3.90.0100.01026.77
8.3.80.0030.00916.88
8.3.70.0060.00918.56
8.3.60.0120.00618.55
8.3.50.0090.00618.39
8.3.40.0060.01318.96
8.3.30.0110.00418.76
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0140.00620.48
8.2.280.0060.00220.49
8.2.270.0180.00317.15
8.2.260.0070.01118.64
8.2.250.0090.00016.60
8.2.240.0030.00717.16
8.2.230.0060.00320.94
8.2.220.0150.00324.06
8.2.210.0040.01226.77
8.2.200.0060.00316.75
8.2.190.0140.00716.58
8.2.180.0100.00725.92
8.2.170.0090.00619.09
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00720.07
8.2.110.0070.00321.12
8.2.100.0040.00818.03
8.2.90.0060.00318.17
8.2.80.0030.00620.53
8.2.70.0030.00617.93
8.2.60.0080.00017.81
8.2.50.0040.00418.10
8.2.40.0040.00421.33
8.2.30.0030.00619.15
8.2.20.0020.00617.95
8.2.10.0080.00021.31
8.2.00.0040.00419.41
8.1.330.0050.00621.97
8.1.320.0110.00816.50
8.1.310.0090.00916.70
8.1.300.0000.01018.39
8.1.290.0080.00030.84
8.1.280.0100.01025.92
8.1.270.0000.00823.99
8.1.260.0110.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.34
8.1.230.0040.00720.86
8.1.220.0050.00317.91
8.1.210.0060.00318.77
8.1.200.0000.01117.48
8.1.190.0050.00317.35
8.1.180.0000.00918.10
8.1.170.0030.00518.78
8.1.160.0040.00420.57
8.1.150.0040.00418.94
8.1.140.0070.00019.10
8.1.130.0000.00720.16
8.1.120.0080.00017.54
8.1.110.0040.00417.41
8.1.100.0040.00417.45
8.1.90.0050.00317.53
8.1.80.0060.00617.59
8.1.70.0000.00717.45
8.1.60.0030.00617.68
8.1.50.0030.00617.62
8.1.40.0040.00417.64
8.1.30.0000.00817.72
8.1.20.0080.00017.72
8.1.10.0000.00717.51
8.1.00.0030.00517.50
8.0.300.0000.00720.07
8.0.290.0050.00316.88
8.0.280.0030.00518.38
8.0.270.0000.00817.02
8.0.260.0030.00318.57
8.0.250.0030.00317.17
8.0.240.0070.00017.15
8.0.230.0070.00017.16
8.0.220.0070.00016.99
8.0.210.0040.00416.99
8.0.200.0000.00617.09
8.0.190.0000.00717.07
8.0.180.0000.01117.13
8.0.170.0040.00417.13
8.0.160.0070.00317.08
8.0.150.0030.00316.98
8.0.140.0070.00717.11
8.0.130.0060.00313.48
8.0.120.0000.00817.11
8.0.110.0030.00617.04
8.0.100.0030.00516.99
8.0.90.0040.00416.99
8.0.80.0060.01116.97
8.0.70.0080.00817.01
8.0.60.0060.01216.95
8.0.50.0080.00816.95
8.0.30.0030.01317.13
8.0.20.0090.00917.12
8.0.10.0120.00317.12
8.0.00.0060.01517.11
7.4.330.0000.00515.55
7.4.320.0000.00616.81
7.4.300.0040.00416.61
7.4.290.0070.00016.66
7.4.280.0050.00216.88
7.4.270.0030.00316.72
7.4.260.0030.00313.50
7.4.250.0000.00716.64
7.4.240.0050.00316.65
7.4.230.0030.00316.91
7.4.220.0080.00016.71
7.4.210.0060.00916.78
7.4.200.0140.00416.91
7.4.190.0090.00616.61
7.4.180.0040.01116.75
7.4.160.0060.00916.78
7.4.150.0090.00616.81
7.4.140.0150.00016.57
7.4.130.0040.01116.56
7.4.120.0100.00716.66
7.4.110.0080.00816.55
7.4.100.0120.00616.75
7.4.90.0050.01216.71
7.4.80.0090.01216.63
7.4.70.0000.01516.64
7.4.60.0030.01116.71
7.4.50.0000.01416.66
7.4.40.0080.00616.64
7.4.30.0120.00316.71
7.4.20.0030.01216.56
7.4.10.0110.00316.48
7.4.00.0090.00616.48
7.3.330.0080.00016.27
7.3.320.0000.00613.27
7.3.310.0030.00316.32
7.3.300.0040.00416.30
7.3.290.0100.00316.28
7.3.280.0030.01016.36
7.3.270.0080.00816.44
7.3.260.0000.01516.37
7.3.250.0120.01316.38
7.3.240.0040.01516.34
7.3.230.0110.00316.41
7.3.220.0080.00616.21
7.3.210.0000.01416.25
7.3.200.0150.00016.25
7.3.190.0030.01016.21
7.3.180.0070.01416.22
7.3.170.0060.01516.22
7.3.160.0120.00316.23
7.3.150.0100.00516.33
7.3.140.0070.01416.25
7.3.130.0120.00616.33
7.3.120.0140.00016.25
7.3.110.0080.00616.11
7.3.100.0090.00616.14
7.3.90.0120.00316.58
7.3.80.0030.01016.30
7.3.70.0130.00716.45
7.3.60.0090.00616.40
7.3.50.0090.00616.57
7.3.40.0120.00316.52
7.3.30.0080.01116.43
7.3.20.0090.00916.45
7.3.10.0040.01616.34
7.3.00.0060.01016.34

preferences:
43.82 ms | 403 KiB | 5 Q