3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 1); error_reporting(-1); var_dump($_FILES); $tmpImage = file_get_contents($_FILES["file"]["tmp_name"]); $theImage = imagecreatefromstring($tmpImage); var_dump($theImage); $imageColors = imagecolorstotal($theImage); var_dump($imageColors);

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.0090.00616.88
8.3.50.0140.00018.02
8.3.40.0120.00618.75
8.3.30.0110.00718.85
8.3.20.0080.00020.35
8.3.10.0040.00422.09
8.3.00.0050.00323.64
8.2.180.0120.00918.41
8.2.170.0070.01022.96
8.2.160.0100.00320.27
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00021.11
8.2.110.0030.00621.18
8.2.100.0070.00417.84
8.2.90.0040.00418.03
8.2.80.0000.00918.09
8.2.70.0030.00517.63
8.2.60.0040.00418.05
8.2.50.0090.00018.34
8.2.40.0030.00720.59
8.2.30.0000.00719.22
8.2.20.0040.00418.18
8.2.10.0000.00718.06
8.2.00.0000.00718.11
8.1.280.0090.00925.92
8.1.270.0090.00023.81
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.79
8.1.230.0080.00422.25
8.1.220.0000.00917.76
8.1.210.0060.00318.77
8.1.200.0050.00517.23
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0040.00418.67
8.1.160.0040.00418.82
8.1.150.0000.00720.06
8.1.140.0040.00417.40
8.1.130.0030.00317.43
8.1.120.0000.00717.38
8.1.110.0030.00517.45
8.1.100.0070.00017.43
8.1.90.0000.00817.28
8.1.80.0000.00817.38
8.1.70.0070.00017.35
8.1.60.0030.00517.44
8.1.50.0030.00517.34
8.1.40.0040.00417.49
8.1.30.0040.00417.49
8.1.20.0000.00717.58
8.1.10.0070.00017.38
8.1.00.0040.00417.33
8.0.300.0030.00319.82
8.0.290.0040.00416.87
8.0.280.0030.00318.58
8.0.270.0070.00017.36
8.0.260.0070.00016.98
8.0.250.0030.00316.96
8.0.240.0030.00316.94
8.0.230.0040.00417.01
8.0.220.0030.00317.04
8.0.210.0030.00317.01
8.0.200.0040.00417.09
8.0.190.0050.00517.12
8.0.180.0030.00517.05
8.0.170.0040.00416.93
8.0.160.0030.00516.91
8.0.150.0030.00616.93
8.0.140.0000.00816.93
8.0.130.0000.00513.42
8.0.120.0040.00416.95
8.0.110.0080.00017.13
8.0.100.0000.00717.13
8.0.90.0070.00016.96
8.0.80.0060.00916.97
8.0.70.0040.00417.05
8.0.60.0000.00716.90
8.0.50.0040.00416.92
8.0.30.0100.01016.99
8.0.20.0080.01317.40
8.0.10.0060.00317.00
8.0.00.0190.00716.76
7.4.330.0000.00415.55
7.4.320.0000.00616.63
7.4.300.0060.00016.52
7.4.290.0000.00716.52
7.4.280.0080.00016.44
7.4.270.0000.00716.49
7.4.260.0040.00416.61
7.4.250.0040.00416.48
7.4.240.0070.00016.62
7.4.230.0040.00416.46
7.4.220.0060.01016.53
7.4.210.0070.00716.67
7.4.200.0000.00816.33
7.4.160.0070.01116.44
7.4.150.0140.00317.40
7.4.140.0130.00917.86
7.4.130.0150.00716.55
7.4.120.0140.00516.57
7.4.110.0060.01516.59
7.4.100.0110.00616.59
7.4.90.0080.00816.51
7.4.80.0070.01019.39
7.4.70.0060.01216.62
7.4.60.0110.00416.50
7.4.50.0070.01016.68
7.4.40.0140.00716.52
7.4.30.0130.00916.47
7.4.00.0060.00615.07
7.3.330.0000.00513.33
7.3.320.0050.00013.14
7.3.310.0030.00316.48
7.3.300.0070.00016.39
7.3.290.0070.01016.37
7.3.280.0080.00916.39
7.3.270.0060.01217.40
7.3.260.0090.00816.35
7.3.250.0120.00916.30
7.3.240.0110.00516.43
7.3.230.0040.01116.46
7.3.210.0060.01216.32
7.3.200.0000.01716.23
7.3.190.0130.00716.44
7.3.180.0090.00916.38
7.3.170.0100.00716.41
7.3.160.0060.01416.53
7.2.330.0130.00616.56
7.2.320.0150.00316.33
7.2.310.0100.00716.58
7.2.300.0170.00016.64
7.2.290.0090.00916.64
7.2.60.0070.00717.02
7.1.200.0060.00615.82
7.1.100.1080.01016.13
7.1.90.1290.01015.76
7.1.80.1440.00316.31
7.1.70.2050.00715.41
7.1.60.1440.01233.34
7.1.50.1420.01432.83
7.1.40.1470.00732.83
7.1.30.1360.01732.44
7.1.20.1130.01032.70
7.1.10.1550.01714.70
7.1.00.1480.00714.92
7.0.240.1110.01315.71
7.0.230.1050.01315.84
7.0.220.1280.01015.93
7.0.210.1300.00714.68
7.0.200.1340.00714.85
7.0.190.1380.01014.90
7.0.180.1360.01014.36
7.0.170.1000.01314.39
7.0.160.1440.00314.34
7.0.150.1460.00314.30
7.0.140.1370.01014.47
7.0.130.1490.01014.48
7.0.120.1440.00714.67
7.0.110.1500.00014.34
7.0.100.1380.01014.33
7.0.90.1410.01014.34
7.0.80.0980.01014.41
7.0.70.0970.00714.32
7.0.60.0980.01014.13
7.0.50.1020.00714.23
7.0.40.1100.00314.62
7.0.30.0990.00714.48
7.0.20.0920.01314.56
7.0.10.0960.01014.65
7.0.00.1030.00314.44

preferences:
49.37 ms | 400 KiB | 5 Q