3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<INI_ISH [chorus] And all will surely agree, There's nothing like PHP. [1] It may not be the best way, But it isn't going away. [2] When you don't appear to hack it, Check for a closing bracket. [bridge] Oh, if you don't like this ode, Then please don't look at my code. INI_ISH; preg_match_all( '#^\[([^\]])[^\]]*\]\R\K(?:(?!^\[).)*$#ms', $content, $m ); $map = array_combine($m[1], $m[0]); $map[','] = "\n\n"; $sequence = '1,c,2,c,b,1,c'; echo strtr($sequence, $map);

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.0110.00822.28
8.4.110.0050.00418.84
8.4.100.0080.00918.96
8.4.90.0120.00818.15
8.4.80.0080.00718.00
8.4.70.0100.01117.92
8.4.60.0150.00617.79
8.4.50.0110.00818.68
8.4.40.0100.01018.01
8.4.30.0040.01118.93
8.4.20.0170.00321.54
8.4.10.0060.00918.05
8.3.250.0120.00517.21
8.3.240.0070.00316.65
8.3.230.0120.00616.68
8.3.220.0130.00617.04
8.3.210.0100.01016.59
8.3.200.0150.00616.63
8.3.190.0090.01016.61
8.3.180.0030.00616.67
8.3.170.0030.00517.18
8.3.160.0120.00616.58
8.3.150.0060.00917.11
8.3.140.0090.00416.58
8.3.130.0170.00316.59
8.3.120.0120.00616.56
8.3.110.0110.00716.63
8.3.100.0220.00016.54
8.3.90.0190.00016.38
8.3.80.0100.01016.50
8.3.70.0180.00216.56
8.3.60.0200.00016.65
8.3.50.0180.00416.71
8.3.40.0150.00617.56
8.3.30.0100.01017.90
8.3.20.0130.00517.78
8.3.10.0170.00017.65
8.3.00.0100.00017.82
8.2.290.0100.00720.34
8.2.280.0100.00916.75
8.2.270.0160.00016.83
8.2.260.0040.00417.05
8.2.250.0170.00016.99
8.2.240.0150.00416.61
8.2.230.0170.00016.84
8.2.220.0160.00416.54
8.2.210.0110.00616.47
8.2.200.0140.00516.50
8.2.190.0140.00516.41
8.2.180.0150.00416.71
8.2.170.0220.00017.71
8.2.160.0230.00017.70
8.2.150.0350.00017.41
8.2.140.0190.00617.69
8.2.130.0170.00317.36
8.2.120.0210.00017.60
8.2.110.0140.00717.52
8.2.100.0160.00417.54
8.2.90.0190.00317.84
8.2.80.0140.00417.82
8.2.70.0170.00617.75
8.2.60.0100.01017.84
8.2.50.0130.00517.77
8.2.40.0100.01017.52
8.2.30.0140.00517.36
8.2.20.0250.00017.54
8.2.10.0130.00717.56
8.2.00.0120.00617.50
8.1.330.0140.00521.93
8.1.320.0110.00918.03
8.1.310.0120.00615.95
8.1.300.0150.00316.39
8.1.290.0180.00316.32
8.1.280.0100.01016.11
8.1.270.0190.00417.35
8.1.260.0160.00817.36
8.1.250.0170.00717.40
8.1.240.0190.00917.59
8.1.230.0330.00317.46
8.1.220.0290.01117.25
8.1.210.0140.01117.40
8.1.200.0230.00817.16
8.1.190.0330.00717.32
8.1.180.0360.00317.15
8.1.170.0260.00317.24
8.1.160.0210.00017.46
8.1.150.0230.00017.37
8.1.140.0210.00417.20
8.1.130.0190.01017.25
8.1.120.0250.00417.38
8.1.110.0220.00317.29
8.1.100.0150.00617.11
8.1.90.0130.00216.94
8.1.80.0090.00617.12
8.1.70.0140.00317.05
8.1.60.0170.00017.23
8.1.50.0150.00317.21
8.1.40.0140.00317.22
8.1.30.0180.00017.57
8.1.20.0090.00917.27
8.1.10.0120.00617.52
8.1.00.0130.00417.34

preferences:
25.71 ms | 403 KiB | 5 Q