3v4l.org

run code in 300+ PHP versions simultaneously
<?hh $string = ""; $newstring = ""; for ($i=0;$i<10240;$i++) { echo "Iteration $i\n"; $string .= 'x'; $newstring = $string; $newstring = preg_replace("/(x)+/","",$newstring); echo "$string - $newstring \n"; }

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.3.60.0030.01018.43
8.3.50.0050.01121.92
8.3.40.0070.00718.71
8.3.30.0100.00619.01
8.3.20.0030.00620.12
8.3.10.0040.00423.61
8.3.00.0040.00420.77
8.2.180.0340.00316.32
8.2.170.0150.00022.96
8.2.160.0100.00720.54
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0080.00020.83
8.2.110.0050.00322.08
8.2.100.0120.00017.66
8.2.90.0030.00519.12
8.2.80.0000.00917.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0030.00619.95
8.2.30.0070.00018.11
8.2.20.0050.00217.48
8.2.10.0000.00817.96
8.2.00.0030.00517.45
8.1.280.0130.00625.92
8.1.270.0050.00323.91
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00622.14
8.1.230.0080.00318.86
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00916.98
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0040.00421.84
8.1.150.0000.00718.48
8.1.140.0040.00417.30
8.1.130.0040.00417.70
8.1.120.0070.00017.32
8.1.110.0000.00717.27
8.1.100.0040.00417.20
8.1.90.0070.00017.21
8.1.80.0040.00417.37
8.1.70.0000.00717.23
8.1.60.0000.00817.41
8.1.50.0050.00217.27
8.1.40.0040.00417.30
8.1.30.0060.00317.46
8.1.20.0080.00017.53
8.1.10.0030.00617.41
8.1.00.0000.00817.41
8.0.300.0000.00918.77
8.0.290.0040.00417.18
8.0.280.0000.00718.36
8.0.270.0000.00617.13
8.0.260.0070.00017.17
8.0.250.0000.00616.88
8.0.240.0030.00316.82
8.0.230.0050.00216.86
8.0.220.0000.00716.65
8.0.210.0030.00316.61
8.0.200.0000.00616.78
8.0.190.0000.00816.75
8.0.180.0040.00416.61
8.0.170.0050.00316.81
8.0.160.0030.00516.74
8.0.150.0080.00016.68
8.0.140.0040.00416.66
8.0.130.0040.00413.43
8.0.120.0000.00816.73
8.0.110.0000.00816.64
8.0.100.0080.00016.79
8.0.90.0030.00416.62
8.0.80.0030.01416.72
8.0.70.0070.00016.74
8.0.60.0000.00716.64
8.0.50.0030.00316.64
8.0.30.0070.01417.06
8.0.20.0100.00917.40
8.0.10.0000.00716.80
8.0.00.0120.00716.68
7.4.330.0020.00215.03
7.4.320.0000.00616.44
7.4.300.0000.00616.46
7.4.290.0040.00416.35
7.4.280.0030.00316.47
7.4.270.0000.00716.50
7.4.260.0030.00316.46
7.4.250.0030.00316.32
7.4.240.0020.00516.34
7.4.230.0000.00716.25
7.4.220.0040.01416.25
7.4.210.0030.01416.54
7.4.200.0000.00716.52
7.4.190.0020.00516.41
7.4.160.0130.01016.39
7.4.150.0000.01717.40
7.4.140.0090.01117.86
7.4.130.0120.00916.36
7.4.120.0110.00516.39
7.4.110.0150.00816.34
7.4.100.0030.01416.33
7.4.90.0090.01416.37
7.4.80.0150.00519.39
7.4.70.0090.00616.30
7.4.60.0100.00616.55
7.4.50.0050.00216.45
7.4.40.0090.00616.48
7.4.30.0130.00316.44
7.3.330.0030.00413.08
7.3.320.0030.00313.02
7.3.310.0030.00516.12
7.3.300.0000.00716.11
7.3.290.0130.00716.19
7.3.280.0110.00716.09
7.3.270.0140.00317.40
7.3.260.0090.00916.18
7.3.250.0090.01116.27
7.3.240.0130.00616.19
7.3.230.0070.01216.39
7.3.210.0100.00616.02
7.3.200.0120.00419.39
7.3.190.0030.01916.45
7.3.180.0000.01516.17
7.3.170.0100.00716.30
7.3.160.0080.00816.47
7.2.330.0070.01416.43
7.2.320.0030.01316.46
7.2.310.0050.01116.39
7.2.300.0100.01316.32
7.2.290.0120.00916.59
5.5.120.0370.05720.29
5.5.110.0370.05720.17
5.5.100.0470.05020.12
5.5.90.0370.05320.11
5.5.80.0270.06720.10
5.5.70.0500.04720.12
5.5.60.0400.05020.14
5.5.50.0330.05720.21
5.5.40.0400.05320.15
5.5.30.0300.06320.13
5.5.20.0330.05719.94
5.5.10.0470.07320.04
5.5.00.0370.08320.05
5.4.280.0470.04719.05
5.4.270.0400.06318.96
5.4.260.0400.05018.98
5.4.250.0370.05318.82
5.4.240.0500.04019.17
5.4.230.0470.04319.06
5.4.220.0430.04719.06
5.4.210.0400.05018.82
5.4.200.0670.06019.06
5.4.190.0400.05318.79
5.4.180.0300.05719.16
5.4.170.0400.07719.06
5.4.160.0470.07319.13
5.4.150.0430.05018.95
5.4.140.0370.04716.39
5.4.130.0330.04716.44
5.4.120.0270.05316.38
5.4.110.0400.05316.47
5.4.100.0530.04716.50
5.4.90.0600.04716.41
5.4.80.0570.05716.50
5.4.70.0430.04016.25
5.4.60.0430.04316.45
5.4.50.0530.05716.31
5.4.40.0470.04316.40
5.4.30.0300.07016.41
5.4.20.0470.04016.21
5.4.10.0430.05016.46
5.4.00.0430.04015.70
5.3.290.0430.04714.43
5.3.280.0370.05314.41
5.3.270.0500.06714.46
5.3.260.0300.09014.44
5.3.250.0300.06314.44
5.3.240.0370.05014.39
5.3.230.0330.04714.38
5.3.220.0370.04714.31
5.3.210.0400.05314.40
5.3.200.0470.05014.46
5.3.190.0530.06014.39
5.3.180.0500.05314.47
5.3.170.0300.06014.47
5.3.160.0330.05014.33
5.3.150.0530.06714.47
5.3.140.0370.06314.46
5.3.130.0370.05314.43
5.3.120.0270.06314.43
5.3.110.0470.05314.33
5.3.100.0430.04714.18
5.3.90.0400.05014.18
5.3.80.0400.05014.18
5.3.70.0330.05314.18
5.3.60.0400.04314.18
5.3.50.0300.05314.18
5.3.40.0370.05014.18
5.3.30.0330.05314.18
5.3.20.0430.04314.18
5.3.10.0530.04314.18
5.3.00.0470.06714.18

preferences:
47.92 ms | 401 KiB | 5 Q