3v4l.org

run code in 500+ PHP versions simultaneously
<?php $profile_image_url = str_replace(" ", "%20", 'https://www.example.com/images/cropped (1).jpg'); $output = ""; $output .= "style='background:url('https://www.example.com/images/" . $profile_image_url . "')no-repeat;'"; echo $output;

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.30.0090.00919.41
8.5.20.0100.00819.38
8.5.10.0110.00816.64
8.5.00.0100.01219.82
8.4.180.0150.00619.72
8.4.170.0100.01220.56
8.4.160.0100.01123.86
8.4.150.0050.00216.77
8.4.140.0170.00617.27
8.4.130.0130.00617.61
8.4.120.0120.00822.35
8.4.110.0120.00820.79
8.4.100.0120.00820.52
8.4.90.0020.00718.58
8.4.80.0050.00318.77
8.4.70.0100.00917.74
8.4.60.0130.00718.62
8.4.50.0100.01020.14
8.4.40.0030.00617.65
8.4.30.0100.00018.89
8.4.20.0100.01020.47
8.4.10.0060.01319.30
8.3.300.0080.01320.75
8.3.290.0110.00920.72
8.3.280.0110.01018.41
8.3.270.0100.01016.79
8.3.260.0110.00916.72
8.3.250.0150.00319.00
8.3.240.0120.00716.72
8.3.230.0090.00716.50
8.3.220.0050.00319.04
8.3.210.0110.00818.64
8.3.200.0050.00316.80
8.3.190.0120.00617.16
8.3.180.0090.00916.59
8.3.170.0110.00720.96
8.3.160.0140.00317.33
8.3.150.0070.01318.95
8.3.140.0120.00616.49
8.3.130.0040.00416.69
8.3.120.0030.00519.10
8.3.110.0050.00316.76
8.3.100.0080.00016.55
8.3.90.0040.00426.77
8.3.80.0070.00318.43
8.3.70.0150.00316.58
8.3.60.0120.00318.31
8.3.50.0240.01017.44
8.3.40.0070.00718.67
8.3.30.0140.00018.80
8.3.20.0040.00421.55
8.3.10.0000.00821.86
8.3.00.0000.00823.65
8.2.300.0120.00922.27
8.2.290.0100.00820.46
8.2.280.0120.00818.20
8.2.270.0140.00019.22
8.2.260.0040.00418.17
8.2.250.0100.01016.30
8.2.240.0150.00418.89
8.2.230.0090.00020.94
8.2.220.0060.00337.54
8.2.210.0140.00326.77
8.2.200.0040.00716.63
8.2.190.0140.00716.58
8.2.180.0040.01125.92
8.2.170.0070.00718.96
8.2.160.0110.00322.96
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00426.16
8.2.110.0100.00022.06
8.2.100.0070.00417.84
8.2.90.0050.00317.88
8.2.80.0000.00918.05
8.2.70.0040.00417.93
8.2.60.0000.00818.16
8.2.50.0040.00418.10
8.2.40.0000.00819.28
8.2.30.0040.00419.18
8.2.20.0040.00418.04
8.2.10.0050.00318.84
8.2.00.0050.00319.16
8.1.340.0120.00821.69
8.1.330.0050.00421.91
8.1.320.0040.01516.14
8.1.310.0070.01016.70
8.1.300.0060.00318.26
8.1.290.0060.00330.84
8.1.280.0060.01025.92
8.1.270.0040.00422.59
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0140.00322.18
8.1.230.0110.00019.02
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0040.00717.35
8.1.190.0060.00317.13
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0060.00318.81
8.1.150.0030.00518.93
8.1.140.0050.00318.90
8.1.130.0000.01020.10
8.1.120.0000.00717.44
8.1.110.0030.00717.34
8.1.100.0020.00517.33
8.1.90.0080.00017.46
8.1.80.0000.00917.50
8.1.70.0000.00717.35
8.1.60.0030.00617.60
8.1.50.0080.00317.55
8.1.40.0000.00817.51
8.1.30.0050.00317.57
8.1.20.0000.01117.63
8.1.10.0070.00017.50
8.1.00.0030.00617.42
8.0.300.0060.00319.79
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0030.00317.16
8.0.260.0000.00718.35
8.0.250.0070.00016.82
8.0.240.0030.00316.84
8.0.230.0040.00416.83
8.0.220.0030.00316.77
8.0.210.0070.00016.77
8.0.200.0060.00016.87
8.0.190.0040.00416.81
8.0.180.0030.00316.96
8.0.170.0040.00416.82
8.0.160.0070.00016.86
8.0.150.0040.00416.73
8.0.140.0070.00016.87
8.0.130.0030.00313.30
8.0.120.0050.00216.89
8.0.110.0070.00016.89
8.0.100.0040.00416.99
8.0.90.0060.00316.83
8.0.80.0130.00616.92
8.0.70.0040.00416.73
8.0.60.0000.00716.62
8.0.50.0040.00416.78
8.0.30.0060.01217.04
8.0.20.0090.00917.06
8.0.10.0040.00416.98
8.0.00.0130.00716.76
7.4.330.0000.00515.55
7.4.320.0000.00616.52
7.4.300.0000.00616.42
7.4.290.0040.00416.46
7.4.280.0000.00816.48
7.4.270.0050.00516.41
7.4.260.0030.00316.41
7.4.250.0000.00716.39
7.4.240.0030.00316.38
7.4.230.0040.00416.51
7.4.220.0070.00016.59
7.4.210.0060.01016.44
7.4.200.0030.00316.46
7.4.160.0080.00816.42
7.4.140.0110.00717.86
7.4.130.0110.00616.32
7.4.120.0040.01916.25
7.4.110.0090.00916.34
7.4.100.0160.00016.38
7.4.90.0150.00316.45
7.4.80.0110.00719.39
7.4.70.0100.00716.52
7.4.60.0070.01316.39
7.4.50.0060.01216.61
7.4.40.0130.01016.61
7.4.00.0090.00614.87
7.3.330.0000.00513.00
7.3.320.0000.00613.09
7.3.310.0040.00416.05
7.3.300.0000.00616.11
7.3.290.0030.00316.27
7.3.280.0070.00916.26
7.3.260.0110.00716.49
7.3.240.0090.01016.34
7.3.230.0080.00816.30
7.3.210.0030.01616.30
7.3.200.0120.01116.39
7.3.190.0090.00616.23
7.3.180.0190.00016.46
7.3.170.0080.01216.50
7.3.160.0000.01616.43
7.3.60.0140.00514.63
7.3.50.0090.00414.75
7.3.40.0170.00314.72
7.3.30.0100.01014.85
7.3.20.0120.00814.65
7.3.10.0220.00814.74
7.3.00.0090.00914.83
7.2.330.0040.01316.67
7.2.320.0030.01416.79
7.2.310.0140.00416.93
7.2.300.0120.00416.47
7.2.290.0110.00516.37
7.2.190.0120.00514.94
7.2.180.0080.00714.84
7.2.170.0030.01115.05
7.2.160.0100.00814.85
7.2.150.0040.01214.84
7.2.140.0170.00915.11
7.2.130.0090.01514.92
7.2.120.0100.01715.02
7.2.110.0110.00815.03
7.2.100.0170.00615.03
7.2.90.0150.01915.04
7.2.80.0090.01115.18
7.2.70.0720.01615.04
7.2.60.0030.01214.91
7.2.50.0140.01114.96
7.2.40.0110.02115.13
7.2.30.0080.01215.07
7.2.20.0140.00214.89
7.2.10.0120.01415.03
7.2.00.0150.00914.91
7.1.300.0050.01014.00
7.1.290.0080.00813.72
7.1.280.0110.01113.93
7.1.270.0140.00313.76
7.1.260.0120.00713.96
7.1.250.0070.01114.02

preferences:
108.83 ms | 1451 KiB | 5 Q