3v4l.org

run code in 300+ PHP versions simultaneously
<?php $artlit = '<ul> <li>Aliev BF.</li> <li>Zyzov IM, Gazhva SI.</li> <li>Mamedzade RE.</li> <li>Mitronin AV, Platonova ASh</li> <li>Nasirova HB.</li> </ul>'; $doi = '2129-8124-2022-3-81-7-12'; $i = 0; $str = ''; $artlit = str_replace(array('<ul>', '</ul>', '</li>'), array('<citation_list>', '</citation_list>', "</unstructured_citation>\n</citation>"), $artlit); $artlit = preg_replace_callback('/<li>/', function ($m) use ($doi, &$i) { return '<citation key="key-'. $doi .'-'. $i++ . '">' . "\n<unstructured_citation>"; }, $artlit); $str .= $artlit; echo $str;

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.4.120.0100.01020.73
8.4.110.0100.00922.50
8.4.100.0110.01018.38
8.4.90.0040.00518.88
8.4.80.0100.01020.27
8.4.70.0100.01218.22
8.4.60.0050.00518.75
8.4.50.0110.00618.95
8.4.40.0090.00917.89
8.4.30.0190.00320.54
8.4.20.0120.00319.93
8.4.10.0000.01623.80
8.3.250.0050.00319.27
8.3.240.0150.00517.43
8.3.230.0110.00716.69
8.3.220.0120.00718.98
8.3.210.0110.00618.75
8.3.200.0050.00416.84
8.3.190.0030.00517.09
8.3.180.0080.01116.75
8.3.170.0070.01118.90
8.3.160.0160.00417.50
8.3.150.0000.01617.00
8.3.140.0060.00916.80
8.3.130.0060.00316.71
8.3.120.0070.00318.72
8.3.110.0060.00316.84
8.3.100.0000.00918.46
8.3.90.0040.00426.77
8.3.80.0070.00316.88
8.3.70.0110.00316.61
8.3.60.0110.00418.55
8.3.50.0090.01220.31
8.3.40.0030.01020.33
8.3.30.0090.00918.83
8.3.20.0030.00524.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0110.01020.30
8.2.280.0130.00918.61
8.2.270.0090.00917.35
8.2.260.0070.00716.50
8.2.250.0140.00416.82
8.2.240.0090.00017.34
8.2.230.0040.00420.94
8.2.220.0030.00524.06
8.2.210.0080.00026.77
8.2.200.0070.00318.66
8.2.190.0150.00016.75
8.2.180.0160.00025.92
8.2.170.0070.00719.09
8.2.160.0120.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00426.16
8.2.110.0100.00020.58
8.2.100.0030.00918.03
8.2.90.0080.00018.14
8.2.80.0050.00317.97
8.2.70.0060.00758.80
8.2.60.0070.00318.05
8.2.50.0030.00618.07
8.2.40.0030.00619.95
8.2.30.0000.00818.13
8.2.20.0000.00719.42
8.2.10.0040.00418.36
8.2.00.0040.00419.34
8.1.330.0110.00822.09
8.1.320.0100.01016.55
8.1.310.0110.00716.61
8.1.300.0090.00616.57
8.1.290.0000.01030.84
8.1.280.0090.00625.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.94
8.1.230.0060.00624.03
8.1.220.0080.00017.74
8.1.210.0000.00918.79
8.1.200.0030.00617.48
8.1.190.0050.00317.61
8.1.180.0000.00818.10
8.1.170.0050.00318.41
8.1.160.0000.00818.95
8.1.150.0040.00418.76
8.1.140.0030.00617.61
8.1.130.0000.00719.07
8.1.120.0070.00017.55
8.1.110.0080.00017.66
8.1.100.0110.00417.61
8.1.90.0100.00517.62
8.1.80.0100.00517.50
8.1.70.0120.00217.54
8.1.60.0120.00617.78
8.1.50.0170.00017.65
8.1.40.0170.00017.66
8.1.30.0130.00517.68
8.1.20.0150.00217.70
8.1.10.0180.00017.63
8.1.00.0160.00417.59
8.0.300.0050.00220.01
8.0.290.0060.00317.00
8.0.280.0000.00720.25
8.0.270.0030.00317.22
8.0.260.0000.00718.45
8.0.250.0000.00717.12
8.0.240.0140.00017.13
8.0.230.0060.00917.15
8.0.220.0070.00717.00
8.0.210.0140.00017.07
8.0.200.0050.01017.14
8.0.190.0040.01117.01
8.0.180.0150.00016.96
8.0.170.0000.01417.01
8.0.160.0080.00516.94
8.0.150.0110.00217.02
8.0.140.0110.00417.07
8.0.130.0080.00816.97
8.0.120.0140.00016.91
8.0.110.0110.00417.07
8.0.100.0120.00317.09
8.0.90.0060.00917.06
8.0.80.0090.00516.99
8.0.70.0040.01117.07
8.0.60.0050.00916.98
8.0.50.0110.00316.94
8.0.30.0050.00916.94
8.0.20.0140.00017.02
8.0.10.0100.00517.02
7.4.330.0030.00315.55
7.4.320.0030.00316.84
7.4.300.0160.00016.85
7.4.290.0120.00416.83
7.4.280.0060.00916.77
7.4.270.0080.00716.77
7.4.260.0150.00016.60
7.4.250.0090.00916.84
7.4.240.0120.00216.80
7.4.230.0100.00516.75
7.4.220.0070.00716.84
7.4.210.0070.00716.89
7.4.200.0040.00816.82
7.4.190.0100.00416.87
7.4.180.0040.00916.91
7.4.160.0030.00316.70
7.4.150.0100.00016.82
7.4.140.0140.00016.66
7.4.130.0120.00216.66
7.4.120.0070.00816.84
7.4.110.0000.01316.68
7.4.100.0140.00016.85
7.4.90.0110.00316.76
7.4.80.0140.00016.83
7.4.70.0140.00016.84
7.4.60.0140.00016.74
7.4.50.0070.00716.59
7.4.40.0090.00516.66
7.4.30.0080.00616.82
7.4.20.0100.00316.57
7.4.10.0080.00616.60
7.4.00.0040.00916.76

preferences:
86.06 ms | 403 KiB | 5 Q