3v4l.org

run code in 300+ PHP versions simultaneously
<?php $img_str = file_get_contents('https://unsplash.com/photos/Dd_7xDCuuUo/download'); $image = imagecreatefromstring($img_str); $w = imagesx($image); $h = imagesy($image); echo $w.'px '.$h.'px';

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.0070.00718.48
8.3.60.0040.01116.49
8.3.50.0130.00821.22
8.3.40.0040.01118.76
8.3.30.0120.00318.49
8.3.20.0040.00420.20
8.3.10.0050.00223.56
8.3.00.0030.00619.55
8.2.190.0120.00318.61
8.2.180.0070.00716.63
8.2.170.0150.00322.96
8.2.160.0130.00319.11
8.2.150.0060.00324.18
8.2.140.0130.00324.66
8.2.130.0000.00826.16
8.2.120.0100.00017.63
8.2.110.0050.00522.21
8.2.100.0080.00317.75
8.2.90.0020.00519.23
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0000.00817.90
8.2.50.0000.00918.07
8.2.40.0070.00019.37
8.2.30.0040.00418.00
8.2.20.0040.00417.57
8.2.10.0000.00817.88
8.2.00.0030.00617.88
8.1.280.0090.00625.92
8.1.270.0070.01120.43
8.1.260.0040.01126.35
8.1.250.0030.00628.09
8.1.240.0030.00622.48
8.1.230.0080.00417.42
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0080.00018.50
8.1.160.0040.00421.96
8.1.150.0000.00718.71
8.1.140.0030.00517.39
8.1.130.0070.00017.65
8.1.120.0000.00717.35
8.1.110.0050.00217.39
8.1.100.0070.00017.43
8.1.90.0000.00817.41
8.1.80.0000.00717.42
8.1.70.0050.00317.34
8.1.60.0000.00817.56
8.1.50.0080.00017.43
8.1.40.0040.00417.42
8.1.30.0060.00317.57
8.1.20.0040.00417.68
8.1.10.0070.00417.54
8.1.00.0040.00417.55
8.0.300.0090.00018.77
8.0.290.0050.00216.73
8.0.280.0000.00718.47
8.0.270.0070.00017.23
8.0.260.0000.00617.26
8.0.250.0000.00717.02
8.0.240.0000.00617.04
8.0.230.0090.00017.05
8.0.220.0080.00017.00
8.0.210.0040.00416.97
8.0.200.0000.00617.01
8.0.190.0000.00816.96
8.0.180.0090.00317.01
8.0.170.0030.00516.87
8.0.160.0000.00717.05
8.0.150.0040.00416.90
8.0.140.0030.00316.77
8.0.130.0030.00313.46
8.0.120.0040.00416.93
8.0.110.0000.00716.86
8.0.100.0040.00416.92
8.0.90.0040.00416.83
8.0.80.0100.00616.87
8.0.70.0080.00016.80
8.0.60.0000.00916.96
8.0.50.0000.00816.89
8.0.30.0130.00817.04
8.0.20.0130.01117.40
8.0.10.0020.00516.97
8.0.00.0100.00716.66
7.4.330.0000.00515.08
7.4.320.0030.00316.48
7.4.300.0000.00716.62
7.4.290.0040.00416.57
7.4.280.0080.00016.62
7.4.270.0030.00316.62
7.4.260.0000.00916.50
7.4.250.0000.00716.48
7.4.240.0030.00316.50
7.4.230.0030.00316.63
7.4.220.0100.01016.60
7.4.210.0120.00516.57
7.4.200.0000.00716.51
7.4.160.0060.01016.50
7.4.150.0050.01417.40
7.4.140.0100.00817.86
7.4.130.0150.00416.54
7.4.120.0090.01016.53
7.4.110.0180.01516.77
7.4.100.0150.00916.45
7.4.90.0100.00716.59
7.4.80.0030.01419.39
7.4.70.0030.01416.68
7.4.60.0070.01016.50
7.4.50.0080.00016.53
7.4.40.0090.00816.34
7.4.30.0030.01316.46
7.4.00.0090.00614.95
7.3.330.0000.00713.24
7.3.320.0000.00613.27
7.3.310.0000.00716.41
7.3.300.0000.00716.36
7.3.290.0080.00016.36
7.3.280.0120.00716.33
7.3.270.0060.01817.40
7.3.260.0140.00416.23
7.3.250.0090.01016.32
7.3.240.0170.00016.56
7.3.230.0100.01016.39
7.3.210.0030.01816.37
7.3.200.0040.01216.32
7.3.190.0000.01716.43
7.3.180.0030.01416.39
7.3.170.0100.01016.27
7.3.160.0030.01616.39
7.3.10.0070.01016.82
7.3.00.0050.00516.72
7.2.330.0070.01016.55
7.2.320.0110.01116.55
7.2.310.0040.01316.38
7.2.300.0130.01316.71
7.2.290.0040.01316.60
7.2.130.0030.01216.89
7.2.120.0000.01316.99
7.2.110.0090.00616.85
7.2.100.0100.00616.85
7.2.90.0050.00516.72
7.2.80.0120.00316.66
7.2.70.0040.01516.75
7.2.60.0070.00916.78
7.2.50.0030.00716.66
7.2.40.0070.00716.67
7.2.30.0100.00316.71
7.2.20.0050.00516.66
7.2.10.0070.00716.58
7.2.00.0050.00918.39
7.1.250.0070.01015.71
7.1.200.0070.00315.52
7.1.100.0040.01218.18
7.1.70.0060.00317.25
7.1.60.0060.01319.13
7.1.50.0130.01017.14
7.1.00.0070.07322.66
7.0.200.0030.00617.18
7.0.60.0200.07020.31
7.0.50.0030.04018.05
7.0.40.0130.06320.48
7.0.30.0270.06720.43
7.0.20.0370.07320.46
7.0.10.0100.06320.50
7.0.00.0030.06020.63
5.6.280.0030.03721.36
5.6.210.0030.05721.09
5.6.200.0000.05318.59
5.6.190.0070.04720.96
5.6.180.0300.07320.98
5.6.170.0270.04320.88
5.6.160.0100.07020.82
5.6.150.0130.06718.48
5.6.140.0070.08018.50
5.6.130.0000.06018.45
5.6.120.0130.08021.31
5.6.110.0100.08021.48
5.6.100.0000.04321.48
5.6.90.0100.07721.48
5.6.80.0100.07320.89
5.5.350.0200.04020.77
5.5.340.0130.07718.22
5.5.330.0100.07720.97
5.5.320.1570.05720.66
5.5.310.0230.04720.63
5.5.300.0070.08318.28
5.5.290.0030.04318.39
5.5.280.0000.07321.24
5.5.270.0230.07021.26
5.5.260.0100.08321.23
5.5.250.0100.07721.20
5.5.240.0070.08020.45
5.4.450.0700.05719.60
5.4.440.0500.06319.80
5.4.430.0570.05319.75
5.4.420.0570.05319.65
5.4.410.0500.05719.38
5.4.400.0530.06719.35
5.4.390.0630.05719.50
5.4.380.0670.05319.52
5.4.370.0670.04719.31
5.4.360.0600.05319.50
5.4.350.0630.05719.21
5.4.340.0530.05719.27
5.4.320.0530.06319.30
5.4.310.0600.05019.31
5.4.300.0600.05719.29
5.4.290.0700.04319.44
5.4.280.0630.05319.47
5.4.270.0570.05019.50
5.4.260.0700.04319.48
5.4.250.0770.05019.40
5.4.240.0670.06019.25
5.4.230.0800.05319.30
5.4.220.0500.06019.45
5.4.210.0730.05719.46
5.4.200.0630.05319.21
5.4.190.0630.05319.18
5.4.180.0670.04019.18
5.4.170.0770.04719.43
5.4.160.0730.05719.25
5.4.150.0770.04319.29
5.4.140.0530.06016.38
5.4.130.0670.05316.42
5.4.120.0530.05716.31
5.4.110.0700.05016.46
5.4.100.0500.05316.31
5.4.90.0530.05716.45
5.4.80.0770.04016.43
5.4.70.0270.07316.42
5.4.60.0270.06716.36
5.4.50.0100.04016.41
5.4.40.0330.05716.43
5.4.30.0070.05716.19
5.4.20.0270.06716.43
5.4.10.0300.06316.36

preferences:
81.91 ms | 401 KiB | 5 Q