3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = trim('http://image.de/image.jpg'); if (empty($string)) { echo 'empty '; } echo $string;

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.0070.00718.43
8.3.50.0030.01017.98
8.3.40.0120.00318.87
8.3.30.0070.01018.73
8.3.20.0040.00421.68
8.3.10.0040.00421.90
8.3.00.0080.00023.54
8.2.180.0060.00916.32
8.2.170.0060.00922.96
8.2.160.0110.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00320.99
8.2.120.0040.00426.35
8.2.110.0050.00521.06
8.2.100.0040.00717.91
8.2.90.0040.00417.88
8.2.80.0080.00018.03
8.2.70.0000.00817.68
8.2.60.0040.00417.80
8.2.50.0020.00518.16
8.2.40.0000.00919.08
8.2.30.0040.00419.25
8.2.20.0040.00417.93
8.2.10.0040.00417.96
8.2.00.0000.00719.18
8.1.280.0100.00725.92
8.1.270.0000.00722.19
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0040.00423.96
8.1.230.0070.00421.03
8.1.220.0000.00917.74
8.1.210.0030.00718.77
8.1.200.0040.00517.13
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0040.00418.48
8.1.160.0040.00418.70
8.1.150.0000.00820.79
8.1.140.0000.00717.64
8.1.130.0030.00619.05
8.1.120.0000.00817.33
8.1.110.0040.00317.35
8.1.100.0040.00417.43
8.1.90.0050.00217.29
8.1.80.0000.00717.41
8.1.70.0080.00017.42
8.1.60.0000.01017.45
8.1.50.0000.00817.36
8.1.40.0040.00417.46
8.1.30.0040.00417.60
8.1.20.0060.00317.61
8.1.10.0050.00317.48
8.1.00.0040.00417.48
8.0.300.0050.00319.68
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0000.00817.26
8.0.260.0050.00217.18
8.0.250.0000.00716.97
8.0.240.0030.00516.95
8.0.230.0000.00816.82
8.0.220.0000.00816.83
8.0.210.0030.00316.82
8.0.200.0060.00016.93
8.0.190.0080.00016.89
8.0.180.0070.00016.84
8.0.170.0030.00516.73
8.0.160.0000.00816.85
8.0.150.0040.00416.80
8.0.140.0050.00316.75
8.0.130.0040.00413.25
8.0.120.0050.00316.77
8.0.110.0040.00416.85
8.0.100.0000.00716.65
8.0.90.0040.00416.82
8.0.80.0030.01216.82
8.0.70.0040.00416.64
8.0.60.0070.00016.90
8.0.50.0050.00316.71
8.0.30.0090.00816.98
8.0.20.0120.01117.40
8.0.10.0000.00716.82
8.0.00.0120.00716.81
7.4.330.0000.00415.55
7.4.320.0030.00316.54
7.4.300.0060.00016.58
7.4.290.0000.00816.53
7.4.280.0070.00016.36
7.4.270.0000.01016.52
7.4.260.0030.00716.45
7.4.250.0030.00316.50
7.4.240.0000.00816.35
7.4.230.0000.00716.39
7.4.220.0000.00716.28
7.4.210.0080.00616.52
7.4.200.0000.00716.64
7.4.160.0110.00816.42
7.4.140.0100.01017.86
7.4.130.0070.01016.60
7.4.120.0080.01116.43
7.4.110.0130.00316.41
7.4.100.0140.00716.47
7.4.90.0130.00416.34
7.4.80.0040.01419.39
7.4.70.0140.00416.42
7.4.60.0070.01016.24
7.4.50.0030.01416.34
7.4.40.0080.00816.54
7.4.00.0100.00814.74
7.3.330.0000.00613.12
7.3.320.0000.00613.02
7.3.310.0070.00016.30
7.3.300.0030.00316.23
7.3.290.0040.00416.06
7.3.280.0060.00816.22
7.3.260.0080.01116.25
7.3.240.0090.00816.28
7.3.230.0180.00016.23
7.3.210.0070.01016.37
7.3.200.0070.01016.21
7.3.190.0090.01216.22
7.3.180.0070.01016.60
7.3.170.0050.01116.31
7.3.160.0090.00616.70
7.3.120.0090.00914.63
7.3.110.0100.00714.72
7.3.100.0100.01014.85
7.3.90.0040.01414.52
7.3.80.0140.00314.70
7.3.70.0030.00914.73
7.3.60.0070.01014.48
7.3.50.0040.01114.91
7.3.40.0070.01014.83
7.3.30.0030.01514.50
7.3.20.0030.01616.77
7.3.10.0110.00316.42
7.3.00.0050.00816.45
7.2.330.0130.00316.79
7.2.320.0120.00616.56
7.2.310.0170.00716.54
7.2.300.0140.00416.69
7.2.290.0060.01216.56
7.2.250.0110.00715.09
7.2.240.0070.01415.10
7.2.230.0150.00314.89
7.2.220.0070.01314.88
7.2.210.0140.00314.59
7.2.200.0070.01114.83
7.2.190.0090.00614.84
7.2.180.0030.01014.96
7.2.170.0000.01714.91
7.2.130.0100.00616.72
7.2.120.0000.01316.65
7.2.110.0070.00716.88
7.2.100.0120.00016.51
7.2.90.0100.00616.83
7.2.80.0030.00616.70
7.2.70.0070.00416.95
7.2.60.0130.00416.73
7.2.50.0040.00816.67
7.2.40.1590.01017.29
7.2.30.1240.00817.22
7.2.20.1110.01117.13
7.2.10.0980.00517.19
7.2.00.1310.01017.32
7.1.330.0070.01015.73
7.1.320.0070.01015.49
7.1.310.0040.01415.83
7.1.300.0040.01115.57
7.1.290.0030.01015.41
7.1.280.0030.01015.89
7.1.270.0070.00715.77
7.1.260.0040.00715.72
7.1.250.0120.00015.74
7.1.200.0030.00915.61
7.1.160.4400.00816.41
7.1.150.2280.00816.46
7.1.140.1960.01216.63
7.1.130.1970.01016.51
7.1.120.2220.01016.62
7.1.110.1930.01116.05
7.1.100.4440.00916.05
7.1.91.2360.01115.90
7.1.80.2260.01316.04
7.1.70.0200.01315.24
7.1.60.0460.01533.27
7.1.50.0670.01032.92
7.1.40.0380.01332.54
7.1.30.0270.01532.71
7.1.20.0430.01832.59
7.1.11.9770.01014.88
7.1.00.7080.01214.55

preferences:
32.78 ms | 400 KiB | 5 Q