3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Visit [my page](http://example.com/posts/), %http://example.com%'; $search = 'http://example.com'; $dehydrated = strtr($text, ['%' => '%%', $search => '%WEBSITE_URL%']); $replace = 'http://another-site.net'; $rehydrated = strtr($dehydrated, ['%%' => '%', '%WEBSITE_URL%' => $replace]); echo $rehydrated;

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.00.0160.01020.06
8.4.150.0010.00014.05
8.4.140.0100.01017.32
8.4.130.0050.00517.90
8.4.120.0060.00320.30
8.4.110.0100.01122.71
8.4.100.0110.01018.01
8.4.90.0130.00718.88
8.4.80.0060.00517.70
8.4.70.0070.00918.84
8.4.60.0130.00718.65
8.4.50.0080.00620.26
8.4.40.0000.01417.63
8.4.30.0160.00320.71
8.4.20.0130.00622.44
8.4.10.0130.00624.04
8.3.280.0110.00918.38
8.3.270.0080.01116.56
8.3.260.0130.00816.45
8.3.250.0130.00418.95
8.3.240.0110.00916.36
8.3.230.0120.00816.35
8.3.220.0130.00517.05
8.3.210.0110.01018.38
8.3.200.0060.00316.60
8.3.190.0070.01117.14
8.3.180.0100.00916.52
8.3.170.0070.01120.66
8.3.160.0080.00017.02
8.3.150.0120.00817.19
8.3.140.0140.00316.60
8.3.130.0080.00018.28
8.3.120.0090.00918.84
8.3.110.0030.00616.60
8.3.100.0070.00016.59
8.3.90.0080.00018.18
8.3.80.0040.00718.43
8.3.70.0120.00316.50
8.3.60.0120.00316.63
8.3.50.0110.00416.70
8.3.40.0100.00321.98
8.3.30.0140.00020.34
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0070.00026.16
8.2.290.0100.00820.57
8.2.280.0140.00518.44
8.2.270.0110.00719.14
8.2.260.0150.00016.59
8.2.250.0090.00016.67
8.2.240.0120.00616.69
8.2.230.0030.00520.94
8.2.220.0090.00024.06
8.2.210.0070.01126.77
8.2.200.0060.00318.54
8.2.190.0100.01016.58
8.2.180.0140.00718.16
8.2.170.0090.00618.79
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00320.38
8.2.110.0070.00322.24
8.2.100.0080.00417.91
8.2.90.0040.00417.84
8.2.80.0040.00419.20
8.2.70.0110.00817.50
8.2.60.0120.00617.25
8.2.50.0190.00017.38
8.2.40.0100.00617.38
8.2.30.0120.00417.50
8.2.20.0130.00517.49
8.2.10.0140.00417.62
8.2.00.0130.00417.63
8.1.330.0060.00522.25
8.1.320.0110.00816.09
8.1.310.0100.00016.94
8.1.300.0110.00417.69
8.1.290.0030.00618.88
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.09
8.1.230.0060.00621.03
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0150.00417.13
8.1.190.0100.00717.09
8.1.180.0140.00616.88
8.1.170.0130.00317.34
8.1.160.0100.00716.97
8.1.150.0090.00916.98
8.1.140.0120.00416.99
8.1.130.0150.00516.88
8.1.120.0140.00217.13
8.1.110.0150.00216.88
8.1.100.0140.00517.13
8.1.90.0120.00817.34
8.1.80.0130.00617.36
8.1.70.0100.00817.25
8.1.60.0090.00917.23
8.1.50.0090.00917.34
8.1.40.0140.00317.25
8.1.30.0140.00517.25
8.1.20.0120.00817.38
8.1.10.0170.00217.25
8.1.00.0140.00417.13
8.0.300.0000.00720.08
8.0.290.0110.00516.58
8.0.280.0110.00516.61
8.0.270.0120.00616.58
8.0.260.0060.01216.75
8.0.250.0100.00716.63
8.0.240.0090.00916.58
8.0.230.0110.00816.58
8.0.220.0120.00516.63
8.0.210.0080.00816.58
8.0.200.0070.01016.58
8.0.190.0110.00616.58
8.0.180.0130.00316.58
8.0.170.0130.00316.75
8.0.160.0100.00716.63
8.0.150.0140.00416.58
8.0.140.0110.00616.58
8.0.130.0080.00816.58
8.0.120.0060.00916.58
8.0.110.0170.00016.60
8.0.100.0160.00016.58
8.0.90.0130.00316.63
8.0.80.0150.00016.61
8.0.70.0130.00316.58
8.0.60.0100.00616.63
8.0.50.0110.00616.63
8.0.30.0130.00316.63
8.0.20.0120.00716.58
8.0.10.0120.00416.63

preferences:
30.05 ms | 403 KiB | 5 Q