3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (strpos($imageUrl, 'https://s3-eu-west-1.amazonaws.com/localsunited/') !== false) { echo str_replace('https://s3-eu-west-1.amazonaws.com/localsunited/', 'https://files.localsunited.nl/', 'https://s3-eu-west-1.amazonaws.com/localsunited/live/image/producttype/thumb_berenice_vest-apache-black_541ac41a9f1e9.jpg'); } else if (strpos($imageUrl, 'http://files.localsunited.nl') !== false) { echo ''; } else { echo 'https://s3-eu-west-1.amazonaws.com/localsunited/live/image/producttype/thumb_berenice_vest-apache-black_541ac41a9f1e9.jpg'; } }

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)
5.6.90.0100.08020.95
5.6.80.0100.07720.39
5.5.250.0130.07320.77
5.5.240.0200.06320.18
5.4.410.0130.05718.96
5.4.400.0070.05718.62
5.4.390.0100.05018.75
5.4.380.0030.06718.45
5.4.370.0170.04718.73
5.4.360.0070.05318.58
5.4.350.0130.05718.63
5.4.340.0070.04815.25
5.4.320.0140.04415.62
5.4.310.0070.05215.66
5.4.300.0040.05315.56
5.4.290.0100.04615.47
5.4.280.0070.04315.57
5.4.270.0110.04315.47
5.4.260.0090.04415.50
5.4.250.0020.05415.61
5.4.240.0140.04415.59
5.4.230.0110.05015.63
5.4.220.0050.05015.50
5.4.210.0040.04715.55
5.4.200.0100.04414.48
5.4.190.0100.04415.53
5.4.180.0050.05215.53
5.4.170.0090.04815.54
5.4.160.0070.05615.55
5.4.150.0110.05615.43
5.4.140.0130.05814.27
5.4.130.0170.04314.17
5.4.120.0090.06014.13
5.4.110.0070.04814.15
5.4.100.0070.04214.14
5.4.90.0100.04314.11
5.4.80.0110.04214.13
5.4.70.0100.04314.09
5.4.60.0100.04714.09
5.4.50.0070.04414.13
5.4.40.0130.04314.11
5.4.30.0100.04214.16
5.4.20.0080.04814.18
5.4.10.0110.04714.14
5.4.00.0130.05013.62
5.3.290.0130.06113.79
5.3.280.0200.04713.66
5.3.270.0080.05413.71
5.3.260.0090.05313.66
5.3.250.0050.05613.64
5.3.240.0130.05313.71
5.3.230.0070.05713.64
5.3.220.0120.04913.66
5.3.210.0100.05813.58
5.3.200.0080.04613.61
5.3.190.0040.05813.58
5.3.180.0090.05213.61
5.3.170.0110.05113.56
5.3.160.0100.04413.59
5.3.150.0060.04513.57
5.3.140.0080.04713.62
5.3.130.0060.04813.57
5.3.120.0050.04913.59
5.3.110.0090.04513.65
5.3.100.0040.04813.11
5.3.90.0070.04513.05
5.3.80.0040.04713.09
5.3.70.0050.04713.02
5.3.60.0090.05012.99
5.3.50.0080.05012.97
5.3.40.0080.04612.96
5.3.30.0110.03812.97
5.3.20.0060.04112.68
5.3.10.0060.04112.65
5.3.00.0070.04512.66
5.2.170.0040.03710.15
5.2.160.0100.03210.19
5.2.150.0060.03610.14
5.2.140.0070.03610.19
5.2.130.0050.03510.21
5.2.120.0040.03610.10
5.2.110.0060.03510.11
5.2.100.0090.03110.20
5.2.90.0070.03210.13
5.2.80.0070.03510.07
5.2.70.0070.03410.13
5.2.60.0040.03910.09
5.2.50.0100.03110.04
5.2.40.0060.0389.98
5.2.30.0080.03310.06
5.2.20.0070.03210.02
5.2.10.0020.0379.94
5.2.00.0050.0349.78
5.1.60.0040.0339.09
5.1.50.0020.0329.04
5.1.40.0030.0319.03
5.1.30.0050.0319.37
5.1.20.0040.0339.43
5.1.10.0050.0329.16
5.1.00.0070.0289.13
5.0.50.0070.0257.60
5.0.40.0020.0257.48
5.0.30.0020.0397.27
5.0.20.0010.0267.25
5.0.10.0080.0207.22
5.0.00.0040.0347.26
4.4.90.0030.0185.33
4.4.80.0030.0185.35
4.4.70.0040.0165.31
4.4.60.0020.0195.32
4.4.50.0010.0205.30
4.4.40.0020.0325.31
4.4.30.0030.0205.32
4.4.20.0010.0205.40
4.4.10.0040.0245.38
4.4.00.0040.0325.34
4.3.110.0050.0215.26
4.3.100.0010.0215.23
4.3.90.0010.0205.21
4.3.80.0030.0285.18
4.3.70.0060.0155.22
4.3.60.0020.0185.21
4.3.50.0010.0205.26
4.3.40.0050.0275.16
4.3.30.0040.0184.53
4.3.20.0020.0194.52
4.3.10.0020.0214.50
4.3.00.0230.01712.27

preferences:
149.04 ms | 1394 KiB | 7 Q