3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<EOT if (1 == 1) { echo 'test'; } while (blah = blah) { echo 'blah'; } EOT; $text = preg_replace('/\) *\n(?=\n{)/', ")", $text); echo $text;

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.130.0110.00919.84
8.4.120.0040.00420.52
8.4.110.0110.01022.40
8.4.100.0110.00917.86
8.4.90.0110.01118.74
8.4.80.0130.00617.87
8.4.70.0080.01118.08
8.4.60.0130.00618.84
8.4.50.0090.01020.23
8.4.40.0130.00617.81
8.4.30.0030.01718.64
8.4.20.0100.01019.71
8.4.10.0060.01519.60
8.3.260.0140.00616.60
8.3.250.0150.00419.05
8.3.240.0130.00618.76
8.3.230.0140.00416.66
8.3.220.0110.00718.97
8.3.210.0080.00716.68
8.3.200.0070.00216.66
8.3.190.0120.00617.14
8.3.180.0120.00816.53
8.3.170.0040.01418.66
8.3.160.0100.01018.49
8.3.150.0060.01218.39
8.3.140.0110.00718.61
8.3.130.0050.00518.49
8.3.120.0060.00320.90
8.3.110.0160.00320.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0070.00318.55
8.3.70.0120.00318.46
8.3.60.0190.00016.63
8.3.50.0140.00716.71
8.3.40.0070.00720.07
8.3.30.0120.00321.94
8.3.20.0080.00024.18
8.3.10.0000.00724.66
8.3.00.0070.00326.16
8.2.290.0130.00520.55
8.2.280.0090.00518.55
8.2.270.0100.00717.53
8.2.260.0030.00716.61
8.2.250.0050.00317.02
8.2.240.0070.00317.16
8.2.230.0050.00522.58
8.2.220.0060.00337.54
8.2.210.0060.00326.77
8.2.200.0060.00316.63
8.2.190.0080.00816.63
8.2.180.0110.00716.50
8.2.170.0000.01419.08
8.2.160.0070.01322.96
8.2.150.0000.00725.66
8.2.140.0090.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0040.00426.16
8.2.100.0030.00626.16
8.2.90.0030.00626.16
8.2.80.0030.00626.16
8.2.70.0090.00026.16
8.2.60.0060.00326.16
8.2.50.0040.00426.16
8.2.40.0040.00426.16
8.2.30.0040.00426.16
8.2.20.0080.00026.16
8.2.10.0080.00026.16
8.2.00.0030.00726.16
8.1.330.0060.00422.13
8.1.320.0130.00716.09
8.1.310.0040.00416.32
8.1.300.0120.00618.46
8.1.290.0070.00430.84
8.1.280.0130.00725.92
8.1.270.0080.00823.99
8.1.260.0070.00326.16
8.1.250.0100.00026.16
8.1.240.0030.00626.16
8.1.230.0040.00426.16
8.1.220.0090.00026.16
8.1.210.0060.00326.16
8.1.200.0060.00326.16
8.1.190.0030.00626.16
8.1.180.0030.00626.16
8.1.170.0050.00526.16
8.1.160.0000.00926.16
8.1.150.0040.00426.16
8.1.140.0030.00626.16
8.1.130.0030.00626.16
8.1.120.0000.00826.16
8.1.110.0000.00826.16
8.1.100.0000.00826.16
8.1.90.0030.00626.16
8.1.80.0060.00326.16
8.1.70.0060.00326.16
8.1.60.0000.00926.16
8.1.50.0040.00426.16
8.1.40.0060.00326.16
8.1.30.0060.00326.16
8.1.20.0030.00626.16
8.1.10.0060.00326.16
8.1.00.0030.00526.16

preferences:
57.02 ms | 403 KiB | 5 Q