3v4l.org

run code in 500+ PHP versions simultaneously
<?php $regex = '/(["\'])(?:(?=(\\\\?))\2.)*?\1(*SKIP)(*F)|\[([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)]/s'; $str = '$output = "<input name=\'variable[key]\' has to be preserved as it is."; $output = \'Even this string variable[key] has to be preserved as it is.\'; $variable[key] = "WhatElse"; $result = $wso->RSLA("7050", $vegalot, "600", "WFID_OK_WEB","1300", $_POST[username]); if ($result[ECD] != 0) { if ($line=="AAAA" && in_array(substr($wso->lot,0,7),$lot_aaaa_list) && $lot[wafer][25]) {'; echo preg_replace($regex, "['\$3']", $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.5.60.0100.00716.87
8.5.50.0050.00318.77
8.5.30.0100.00818.72
8.5.20.0090.00819.69
8.5.10.0080.01020.25
8.5.00.0130.00919.98
8.4.210.0110.01021.59
8.4.180.0080.00419.79
8.4.170.0030.00723.86
8.4.160.0140.00823.68
8.4.150.0100.00516.94
8.4.140.0150.01117.58
8.4.130.0120.01117.93
8.4.120.0070.01220.83
8.4.110.0140.00718.98
8.4.100.0120.00917.95
8.4.90.0120.00817.80
8.4.80.0150.00618.25
8.4.70.0070.00918.01
8.4.60.0160.00818.52
8.4.50.0150.00618.91
8.4.40.0100.01017.73
8.4.30.0140.00218.41
8.4.20.0060.01320.59
8.4.10.0040.00918.20
8.3.300.0090.01120.95
8.3.290.0130.01120.94
8.3.280.0070.00516.40
8.3.270.0130.00816.61
8.3.260.0100.00616.79
8.3.250.0040.00419.02
8.3.240.0150.00416.64
8.3.230.0110.00916.61
8.3.220.0130.00517.08
8.3.210.0130.00716.86
8.3.200.0040.00516.57
8.3.190.0060.00417.34
8.3.180.0160.00617.19
8.3.170.0040.01420.68
8.3.160.0150.00317.23
8.3.150.0120.00617.08
8.3.140.0000.00816.70
8.3.130.0060.00318.56
8.3.120.0110.00018.65
8.3.110.0050.00320.94
8.3.100.0060.00324.06
8.3.90.0050.00326.77
8.3.80.0040.00716.75
8.3.70.0110.01116.58
8.3.60.0220.00016.63
8.3.50.0090.00920.22
8.3.40.0000.01421.94
8.3.30.0070.00719.01
8.3.20.0080.00024.18
8.3.10.0050.00324.66
8.3.00.0080.00026.16
8.2.300.0120.00822.28
8.2.290.0120.00718.86
8.2.280.0130.00618.40
8.2.270.0110.01117.33
8.2.260.0150.00416.92
8.2.250.0060.00318.49
8.2.240.0070.01017.35
8.2.230.0100.00622.58
8.2.220.0030.00537.54
8.2.210.0120.00626.77
8.2.200.0000.00816.63
8.2.190.0110.01116.75
8.2.180.0070.00725.92
8.2.170.0090.00619.14
8.2.160.0070.00722.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00619.61
8.2.110.0060.00319.17
8.2.100.0000.01218.16
8.2.90.0080.00019.20
8.2.80.0000.00917.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0050.00317.98
8.2.40.0080.00019.95
8.2.30.0040.00417.92
8.2.20.0030.00520.47
8.2.10.0070.00017.90
8.2.00.0000.00719.16
8.1.340.0120.00819.72
8.1.330.0120.00816.21
8.1.320.0110.00916.48
8.1.310.0140.00316.85
8.1.300.0090.00920.30
8.1.290.0030.00718.88
8.1.280.0120.00925.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00319.32
8.1.230.0070.00419.07
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00317.47
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0090.00017.62
8.1.160.0000.00821.95
8.1.150.0040.00418.80
8.1.140.0070.00417.56
8.1.130.0000.00717.58
8.1.120.0040.00417.50
8.1.110.0000.00717.49
8.1.100.0040.00417.45
8.1.90.0070.00017.45
8.1.80.0070.00317.54
8.1.70.0030.00317.51
8.1.60.0040.00417.70
8.1.50.0040.00417.61
8.1.40.0000.00717.63
8.1.30.0060.00317.71
8.1.20.0000.00817.71
8.1.10.0170.00717.52
8.1.00.0150.01017.46
8.0.300.0070.00018.77
8.0.290.0080.00016.88
8.0.280.0070.00018.39
8.0.270.0080.00016.89
8.0.260.0070.00016.87
8.0.250.0030.00317.00
8.0.240.0070.00016.98
8.0.230.0030.00316.93
8.0.220.0050.00317.02
8.0.210.0070.00016.99
8.0.200.0000.00716.94
8.0.190.0040.00417.02
8.0.180.0050.00317.03
8.0.170.0000.00917.08
8.0.160.0080.00017.05
8.0.150.0070.00016.84
8.0.140.0210.00016.88
8.0.130.0140.00716.91
8.0.120.0190.00217.02
8.0.110.0110.01116.93
8.0.100.0190.00316.89
8.0.90.0140.00717.01
8.0.80.0160.00517.02
8.0.70.0140.00716.88
8.0.60.0150.00716.84
8.0.50.0140.00917.03
8.0.30.0090.01216.99
8.0.20.0200.00617.10
8.0.10.0200.00417.22
8.0.00.0120.00017.09
7.4.330.0000.00515.55
7.4.320.0030.00316.88
7.4.300.0060.00016.83
7.4.290.0070.00016.79
7.4.280.0040.00416.74
7.4.270.0300.00016.69
7.4.260.0210.00316.71
7.4.250.0170.00916.80
7.4.240.0170.00716.67
7.4.230.0240.00316.72
7.4.220.0170.00516.75
7.4.210.0210.00016.68
7.4.200.0190.00316.57
7.4.190.0200.00316.72
7.4.180.0220.00316.60
7.4.160.0140.00616.66
7.4.150.0120.00616.54
7.4.140.0090.00616.50
7.4.130.0140.00216.52
7.4.120.0130.00216.54
7.4.110.0110.00816.67
7.4.100.0170.00016.61
7.4.90.0060.01216.52
7.4.80.0110.00716.55
7.4.70.0120.00416.63
7.4.60.0140.00316.60
7.4.50.0080.00816.70
7.4.40.0120.00616.31
7.4.30.0080.01216.61
7.4.20.0160.00616.41
7.4.10.0190.00016.48
7.4.00.0170.00316.52
7.3.330.0110.00716.17
7.3.320.0180.00416.33
7.3.310.0110.00616.01
7.3.300.0000.01616.37
7.3.290.0120.00616.07
7.3.280.0090.00916.38
7.3.270.0130.00516.36
7.3.260.0130.00316.11
7.3.250.0150.00616.31
7.3.240.0120.00316.39
7.3.230.0150.00016.13
7.3.220.0060.00715.95
7.3.210.0150.00216.07
7.3.200.0110.00715.96
7.3.190.0170.00016.10
7.3.180.0180.00316.18
7.3.170.0160.00416.18
7.3.160.0090.00615.98
7.3.150.0150.00515.92
7.3.140.0150.00515.95
7.3.130.0180.00316.14

preferences:
101.3 ms | 1415 KiB | 5 Q