3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = ''; $result = strtolower(substr($url, -4)) === '.gif'; var_dump($result);

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.70.0120.00618.31
8.3.60.0130.00716.63
8.3.50.0130.00316.33
8.3.40.0030.00918.55
8.3.30.0100.00318.36
8.3.20.0030.00520.78
8.3.10.0040.00421.68
8.3.00.0080.00019.35
8.2.180.0170.00316.35
8.2.170.0100.01622.96
8.2.160.0070.00720.35
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00022.13
8.2.120.0040.00426.35
8.2.110.0040.00722.25
8.2.100.0170.00017.34
8.2.90.0000.00919.09
8.2.80.0000.00917.97
8.2.70.0120.00017.38
8.2.60.0040.00417.80
8.2.50.0050.00318.10
8.2.40.0070.00022.32
8.2.30.0080.00020.87
8.2.20.0040.00417.96
8.2.10.0000.00818.05
8.2.00.0040.00418.11
8.1.280.0110.00725.92
8.1.270.0040.00422.11
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0180.00323.98
8.1.230.0060.00623.85
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00717.22
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0000.00818.39
8.1.160.0030.00318.95
8.1.150.0040.00420.48
8.1.140.0030.00619.55
8.1.130.0030.00318.68
8.1.120.0050.00317.45
8.1.110.0080.00017.41
8.1.100.0070.00017.29
8.1.90.0020.00517.39
8.1.80.0060.00317.37
8.1.70.0000.00717.41
8.1.60.0000.00817.39
8.1.50.0050.00217.43
8.1.40.0080.00417.49
8.1.30.0030.00517.41
8.1.20.0030.00617.47
8.1.10.0050.00317.52
8.1.00.0000.00817.40
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.35
8.0.270.0030.00617.18
8.0.260.0000.00716.75
8.0.250.0000.00616.79
8.0.240.0040.00416.76
8.0.230.0000.00716.75
8.0.220.0070.00016.85
8.0.210.0100.00016.77
8.0.200.0030.00316.93
8.0.190.0040.00416.75
8.0.180.0040.00416.75
8.0.170.0000.00716.81
8.0.160.0000.00916.88
8.0.150.0000.00716.86
8.0.140.0040.00416.73
8.0.130.0000.00513.33
8.0.120.0000.00816.80
8.0.110.0000.00816.63
8.0.100.0040.00416.81
8.0.90.0070.00016.62
8.0.80.0130.01016.74
8.0.70.0080.00016.86
8.0.60.0080.00316.68
8.0.50.0000.00716.67
8.0.30.0080.01016.93
8.0.20.0080.01217.40
8.0.10.0040.00416.98
8.0.00.0130.00316.90
7.4.330.0000.00515.55
7.4.320.0000.00616.48
7.4.300.0060.00016.60
7.4.290.0030.00716.39
7.4.280.0080.00016.47
7.4.270.0050.00216.54
7.4.260.0000.00613.25
7.4.250.0000.00716.43
7.4.240.0000.00716.39
7.4.230.0060.00016.28
7.4.220.0180.00616.66
7.4.210.0030.01616.45
7.4.200.0030.00316.59
7.4.160.0080.00816.60
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0080.01116.41
7.4.120.0120.00916.49
7.4.110.0120.00916.48
7.4.100.0120.00616.50
7.4.90.0100.01316.31
7.4.80.0120.01219.39
7.4.70.0100.00616.48
7.4.60.0070.01016.40
7.4.50.0080.00316.57
7.4.40.0130.00716.46
7.4.30.0080.00816.58
7.4.00.0070.01014.83
7.3.330.0020.00212.93
7.3.320.0000.00613.17
7.3.310.0040.00416.23
7.3.300.0000.00616.09
7.3.290.0100.00516.21
7.3.280.0070.01016.21
7.3.270.0040.01217.40
7.3.260.0120.00516.24
7.3.250.0120.00916.32
7.3.240.0150.00416.46
7.3.230.0100.00716.51
7.3.210.0090.00616.12
7.3.200.0060.01016.20
7.3.190.0050.01116.41
7.3.180.0060.00916.18
7.3.170.0040.01216.11
7.3.160.0120.00916.39
7.3.120.0120.00614.56
7.3.110.0070.00314.40
7.3.100.0070.01114.45
7.3.90.0120.00414.63
7.3.80.0090.00614.65
7.3.70.0070.00714.67
7.3.60.0030.01214.73
7.3.50.0040.01114.41
7.3.40.0060.00314.80
7.3.30.0060.00914.84
7.3.20.0070.00716.64
7.3.10.0040.00916.62
7.3.00.0100.00616.37
7.2.330.0170.00716.61
7.2.320.0130.00316.64
7.2.310.0060.01216.34
7.2.300.0030.01316.30
7.2.290.0140.00316.43
7.2.250.0070.01014.61
7.2.240.0100.01014.81
7.2.230.0030.01414.81
7.2.220.0040.01414.94
7.2.210.0060.00614.79
7.2.200.0000.00915.08
7.2.190.0060.00614.78
7.2.180.0040.01114.93
7.2.170.0000.01515.04
7.2.130.0050.01016.59
7.2.120.0090.00716.43
7.2.110.0050.00916.55
7.2.100.0030.00916.70
7.2.90.0110.00516.55
7.2.80.0030.00816.63
7.2.70.0060.00816.61
7.2.60.0040.00616.62
7.2.50.0070.00716.72
7.2.40.0080.00716.50
7.2.30.0050.00816.78
7.2.20.0060.00916.56
7.2.10.0030.00916.63
7.2.00.0090.00817.63
7.1.330.0040.00815.70
7.1.320.0110.00415.80
7.1.310.0090.00315.75
7.1.300.0040.00715.74
7.1.290.0030.00615.67
7.1.280.0040.00815.50
7.1.270.0000.01615.82
7.1.260.0000.00915.52
7.1.250.0070.00515.54
7.1.100.0000.01117.82
7.1.70.0040.00416.78
7.1.60.2870.01733.11
7.1.50.2270.01332.96
7.1.40.1930.01332.55
7.1.30.2370.01332.56
7.1.20.0770.01332.58
7.1.10.0070.01314.61
7.1.00.1000.01314.85
7.0.200.3630.01014.91
7.0.190.3970.01014.84
7.0.180.2300.01714.41
7.0.170.2670.01014.28
7.0.160.2700.01014.55
7.0.150.0170.01014.30
7.0.140.0470.01714.32
7.0.130.0530.01714.77
7.0.120.2170.01014.36
7.0.110.0100.01014.29
7.0.100.0100.01014.41
7.0.90.0630.00714.28
7.0.80.0170.01014.48
7.0.70.1070.01314.42
7.0.60.0100.01014.21
7.0.50.0100.01014.49
7.0.40.0100.01014.64
7.0.30.0100.01014.44
7.0.20.0130.01714.70
7.0.10.2230.01714.41
7.0.00.2730.01314.59

preferences:
57.42 ms | 401 KiB | 5 Q