3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Exmaple.com</title> <style> </style> </head> <body> <div class="account-details"> <b>Account Name</b>: <?php echo e(company.name); ?><br> <b>Plan</b>: <?php echo e(plan.name); ?><br> <b>Source</b>: <?php echo e(source.name); ?><br> <b>Source Type</b>: <?php echo e(source.source_type.name); ?><br> <br> </div> <div class="welcome" style="font-family:Arial;font-size:small"> Hi <?php echo e(user.first_name); ?>,<br> <br> There seems to be a problem blah blah blah<br> <br> Details of the problem are:<br> <?php echo e(sourceMessage); ?><br> <br> You can check and update the source here:<br> https://example.com<br> <br> <br> <span style="font-size:12.8px"> Kind regards,<br> <br> Test Team<br> <br> Email: <a href="mailto:test@example.com" target="_blank">example.com</a><br> Website: <a href="http://example.com" target="_blank">example.com</a><br> </span> </div> </body> </html>'; $html = preg_replace_callback('/(<\?php\s+.*?\be\()([^)]+\))/', function ($m) { return "{$m[1]}$" . str_replace('.', '->', $m[2]); }, $html); echo $html;

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.20.0070.01317.95
8.4.10.0060.00319.75
8.3.150.0070.01117.14
8.3.140.0130.00616.81
8.3.130.0080.00018.57
8.3.120.0060.00320.71
8.3.110.0120.00618.68
8.3.100.0060.00316.88
8.3.90.0040.00416.87
8.3.80.0030.00618.55
8.3.70.0070.01116.48
8.3.60.0060.01218.43
8.3.50.0070.01424.70
8.3.40.0160.00618.82
8.3.30.0160.00318.96
8.3.20.0080.00021.89
8.3.10.0000.00822.11
8.3.00.0000.00723.49
8.2.270.0150.00316.55
8.2.260.0050.00318.88
8.2.250.0040.00418.58
8.2.240.0100.00718.88
8.2.230.0030.00620.94
8.2.220.0030.01624.06
8.2.210.0110.00426.77
8.2.200.0060.00316.88
8.2.190.0100.01016.63
8.2.180.0150.00318.50
8.2.170.0070.01319.07
8.2.160.0150.00322.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00419.73
8.2.110.0030.00722.25
8.2.100.0080.00417.97
8.2.90.0000.00817.75
8.2.80.0040.00418.91
8.2.70.0050.00317.93
8.2.60.0000.00818.16
8.2.50.0050.00319.33
8.2.40.0030.00619.47
8.2.30.0050.00219.26
8.2.20.0000.00718.16
8.2.10.0050.00219.26
8.2.00.0040.00419.30
8.1.310.0060.00316.79
8.1.300.0030.00716.19
8.1.290.0030.00618.88
8.1.280.0110.00425.92
8.1.270.0050.00222.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.98
8.1.230.0040.00817.77
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.60
8.1.190.0040.00417.35
8.1.180.0030.00519.01
8.1.170.0050.00318.64
8.1.160.0070.00019.05
8.1.150.0000.00718.87
8.1.140.0000.00718.90
8.1.130.0040.00417.54
8.1.120.0030.00517.68
8.1.110.0050.00317.59
8.1.100.0040.00417.61
8.1.90.0030.00617.63
8.1.80.0030.00617.57
8.1.70.0070.00017.64
8.1.60.0000.00817.68
8.1.50.0030.00517.74
8.1.40.0000.00717.64
8.1.30.0060.00317.82
8.1.20.0060.00317.77
8.1.10.0040.00417.75
8.1.00.0040.00417.70
8.0.300.0040.00418.80
8.0.290.0040.00416.88
8.0.280.0070.00018.39
8.0.270.0040.00416.89
8.0.260.0030.00317.04
8.0.250.0000.00717.15
8.0.240.0040.00417.00
8.0.230.0000.00717.14
8.0.220.0040.00417.03
8.0.210.0070.00016.90
8.0.200.0000.00717.15
8.0.190.0000.00717.05
8.0.180.0040.00416.98
8.0.170.0070.00317.07
8.0.160.0070.00017.07
8.0.150.0000.00817.00
8.0.140.0000.00717.02
8.0.130.0030.00313.52
8.0.120.0000.00717.03
8.0.110.0050.00216.91
8.0.100.0040.00416.89
8.0.90.0090.00016.83
8.0.80.0100.00916.98
8.0.70.0000.00816.95
8.0.60.0050.00216.93
8.0.50.0000.00717.10
8.0.30.0120.00617.04
8.0.20.0100.00817.14
8.0.10.0040.00417.23
8.0.00.0160.01217.05
7.4.330.0000.00515.55
7.4.320.0000.00616.74
7.4.300.0000.00816.81
7.4.290.0040.00416.69
7.4.280.0050.00516.84
7.4.270.0000.00716.72
7.4.260.0000.00513.43
7.4.250.0070.00016.73
7.4.240.0050.00216.74
7.4.230.0040.00416.80
7.4.220.0020.00516.57
7.4.210.0050.01016.89
7.4.200.0050.00216.73
7.4.130.0130.00816.86
7.4.120.0040.01316.68
7.4.110.0100.00716.84
7.4.100.0180.00316.62
7.4.90.0150.00416.58
7.4.80.0110.01419.39
7.4.70.0110.00616.73
7.4.60.0070.01016.79
7.4.50.0030.01316.59
7.4.40.0090.01016.63
7.4.30.0090.00916.52
7.4.20.0130.01016.78
7.4.10.0120.01016.70
7.4.00.0130.00716.64
7.3.330.0080.00616.56
7.3.320.0030.00313.51
7.3.310.0000.00716.35
7.3.300.0030.00316.55
7.3.290.0070.00916.50
7.3.280.0000.01716.38
7.3.260.0070.01116.52
7.3.240.0090.01116.64
7.3.230.0070.01016.64
7.3.210.0110.00616.58
7.3.200.0160.00016.59
7.3.190.0100.01316.56
7.3.180.0150.00316.64
7.3.170.0120.00316.76
7.3.160.0110.00716.90
7.3.150.0180.00016.91
7.3.140.0060.01216.56
7.3.130.0060.01116.45
7.3.120.0090.00916.51
7.3.110.0090.00916.54
7.3.100.0140.00316.49
7.3.90.0060.01216.66
7.3.80.0000.01616.46
7.3.70.0070.01016.52
7.3.60.0080.00816.40
7.3.50.0110.00616.69
7.3.40.0130.00316.51
7.3.30.0000.01616.57
7.3.20.0160.00616.30
7.3.10.0060.01316.59
7.3.00.0070.01016.57
7.2.330.0230.00616.79
7.2.320.0110.00716.79
7.2.310.0070.01016.79
7.2.300.0120.00616.88
7.2.290.0090.00916.64
7.2.280.0080.01216.77
7.2.270.0140.00316.93
7.2.260.0200.00016.72
7.2.250.0100.01316.93
7.2.240.0120.00616.70
7.2.230.0080.01216.72
7.2.220.0070.01616.75
7.2.210.0060.01116.82
7.2.200.0030.01316.68
7.2.190.0100.00916.79
7.2.180.0100.00716.87
7.2.170.0030.01416.74
7.2.160.0080.01116.88
7.2.150.0070.01116.82
7.2.140.0090.00916.88
7.2.130.0120.00616.61
7.2.120.0130.00616.88
7.2.110.0000.01716.71
7.2.100.0110.00816.91
7.2.90.0150.00316.45
7.2.80.0070.01116.82
7.2.70.0120.00616.60
7.2.60.0210.01216.49
7.2.50.0150.00616.65
7.2.40.0140.00716.57
7.2.30.0060.01216.67
7.2.20.0160.00616.87
7.2.10.0060.01216.91
7.2.00.0080.01216.71

preferences:
29.41 ms | 403 KiB | 5 Q