3v4l.org

run code in 300+ PHP versions simultaneously
<? // Set the save folder // [IMPORTANT NOTE]: // This sample saves the snapshot to the folder on the work dir of this script. // Please make sure the script has the WRITE permission in this folder. // You can also set the value to other folder, for example: // $t_strSaveFolder = "c:/temp"; $t_strSaveFolder = dirname(__FILE__); // Set the image filename $t_strLargeImage = $t_strSaveFolder."/main-thumb.large.png"; $t_strSmallImage = $t_strSaveFolder."/main-thumb.small.png"; // Create instance ACAWebThumb.ThumbMaker. $t_xMaker = new COM("ACAWebThumb.ThumbMaker") or die("Start ACAWebThumb.Maker failed"); // Set the URL and start snap $t_strURL = 'http://www.acasystems.com'; $t_xMaker->SetURL($t_strURL); $t_iRet = $t_xMaker->StartSnap(); if ( 0 == $t_iRet ) { // snap successful, save webpage to image with full size. $t_bRet1 = $t_xMaker->SaveImage($t_strLargeImage); // save webpage to thumbnail with 320x240 size $t_xMaker->SetThumbSize (320, 240, 0); $t_bRet2 = $t_xMaker->SaveImage($t_strSmallImage); // show the image online. if ( $t_bRet1 && $t_bRet2) { echo "The snapshot from <a href='".$t_strURL."' target=_blank>".$t_strURL."</a>:"; echo "<a href='main-thumb.large.png'>img src='main-thumb.small.png' border=1></a>"; } else { echo "ERROR: Can't save the snapshot to folder ".dirname(__FILE__).". "; echo "Please make sure the script has the WRITE PERMISSION in this folder."; } } else echo "ERROR: Snap from ".$t_strURL." failed. "; ?>

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.00918.18
8.3.50.0140.00417.75
8.3.40.0180.00418.61
8.3.30.0130.00618.94
8.3.20.0040.00420.34
8.3.10.0080.00021.91
8.3.00.0080.00019.25
8.2.180.0040.01116.63
8.2.170.0120.00322.96
8.2.160.0070.00719.32
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00421.10
8.2.110.0090.00020.92
8.2.100.0110.00017.63
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0040.00419.94
8.2.30.0040.00417.94
8.2.20.0080.00017.61
8.2.10.0040.00417.95
8.2.00.0050.00517.81
8.1.280.0160.00325.92
8.1.270.0110.00720.24
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00319.15
8.1.230.0120.00017.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0040.00416.96
8.1.180.0000.00818.10
8.1.170.0030.00620.28
8.1.160.0030.00621.99
8.1.150.0050.00318.81
8.1.140.0040.00417.34
8.1.130.0040.00417.73
8.1.120.0040.00317.35
8.1.110.0030.00317.25
8.1.100.0000.00717.22
8.1.90.0080.00017.25
8.1.80.0040.00417.30
8.1.70.0000.00717.20
8.1.60.0040.00417.35
8.1.50.0030.00517.46
8.1.40.0000.00917.41
8.1.30.0080.00017.45
8.1.20.0040.00417.52
8.1.10.0060.00317.35
8.1.00.0000.00717.25
8.0.300.0000.00718.77
8.0.290.0070.00016.58
8.0.280.0030.00318.31
8.0.270.0030.00317.11
8.0.260.0060.00017.20
8.0.250.0030.00516.83
8.0.240.0000.00716.84
8.0.230.0100.00016.72
8.0.220.0030.00316.79
8.0.210.0030.00316.80
8.0.200.0030.00316.78
8.0.190.0040.00416.81
8.0.180.0000.00716.71
8.0.170.0060.00316.77
8.0.160.0040.00416.61
8.0.150.0030.00516.71
8.0.140.0050.00216.72
8.0.130.0030.00313.41
8.0.120.0000.00816.77
8.0.110.0040.00416.75
8.0.100.0070.00016.71
8.0.90.0000.00716.68
8.0.80.0100.01016.73
8.0.70.0050.00216.68
8.0.60.0040.00416.63
8.0.50.0000.00716.76
8.0.30.0090.01016.74
8.0.20.0090.01517.40
8.0.10.0000.00716.87
8.0.00.0100.00816.56
7.4.330.0000.00515.03
7.4.320.0030.00316.40
7.4.300.0000.00716.28
7.4.290.0030.00316.29
7.4.280.0040.00416.40
7.4.270.0000.00616.48
7.4.260.0030.00316.37
7.4.250.0000.00716.36
7.4.240.0000.00716.50
7.4.230.0070.00016.25
7.4.220.0210.00616.47
7.4.210.0100.01016.41
7.4.200.0040.00416.30
7.4.160.0100.01016.60
7.4.150.0030.01617.40
7.4.140.0100.01217.86
7.4.130.0140.00616.42
7.4.120.0110.00816.36
7.4.110.0100.00716.30
7.4.100.0170.00316.19
7.4.90.0070.01016.61
7.4.80.0100.00719.39
7.4.70.0040.01216.40
7.4.60.0130.00316.43
7.4.50.0000.00716.07
7.4.40.0150.00916.22
7.4.30.0040.01816.58
7.4.00.0060.00915.11
7.3.330.0050.00013.07
7.3.320.0000.00613.14
7.3.310.0070.00016.11
7.3.300.0000.00716.15
7.3.290.0060.01116.19
7.3.280.0100.00616.15
7.3.270.0070.01017.40
7.3.260.0150.00316.55
7.3.250.0120.00816.49
7.3.240.0070.01016.43
7.3.230.0070.01016.39
7.3.210.0140.00716.27
7.3.200.0110.00719.39
7.3.190.0110.00616.24
7.3.180.0060.01016.38
7.3.170.0120.00616.27
7.3.160.0060.01016.42
7.3.120.0060.00914.69
7.3.110.0030.00714.70
7.3.100.0030.00614.86
7.3.90.0030.00614.79
7.3.80.0090.00614.79
7.3.70.0130.00314.66
7.3.60.0030.01014.50
7.3.50.0050.00514.67
7.3.40.0060.00614.60
7.3.30.0080.00514.64
7.3.20.0070.00716.61
7.3.10.0100.00716.64
7.3.00.0130.00616.66
7.2.330.0000.01716.50
7.2.320.0070.01316.34
7.2.310.0080.00816.34
7.2.300.0720.00316.57
7.2.290.0100.00916.48
7.2.240.0130.00314.93
7.2.230.0080.00815.07
7.2.220.0080.00414.85
7.2.210.0040.01115.07
7.2.200.0060.00914.81
7.2.190.0060.00614.87
7.2.180.0040.00914.88
7.2.170.0060.00614.70
7.2.160.0000.01014.91
7.2.150.0070.00716.87
7.2.140.0100.00316.90
7.2.130.0060.01016.36
7.2.120.0030.01316.61
7.2.110.0030.01316.63
7.2.100.0070.01116.59
7.2.90.0060.01016.88
7.2.80.0040.01116.78
7.2.70.0000.01416.66
7.2.60.0070.00916.85
7.2.50.0070.01116.62
7.2.40.0070.01016.58
7.2.30.0040.01216.79
7.2.20.0070.01116.54
7.2.10.0130.00616.64
7.2.00.0040.00817.91
7.1.330.0000.01715.51
7.1.320.0090.00415.57
7.1.310.0000.01315.55
7.1.300.0030.00915.55
7.1.290.0090.00315.35
7.1.280.0000.01515.57
7.1.270.0040.00815.53
7.1.260.0040.00715.53
7.1.250.0040.01215.32
7.1.200.0090.00315.69
7.1.100.0030.00918.10
7.1.70.0000.00817.11
7.1.60.0090.00619.48
7.1.50.0160.00916.84
7.1.00.0030.07322.40
7.0.200.0000.00816.51
7.0.60.0100.06320.01
7.0.50.0030.04717.82
7.0.40.0130.03719.98
7.0.30.0600.07320.06
7.0.20.0370.06020.23
7.0.10.0200.08720.12
7.0.00.0070.08720.17
5.6.280.0030.07020.89
5.6.210.0170.07320.53
5.6.200.0030.04018.16
5.6.190.0030.07320.36
5.6.180.0270.06320.58
5.6.170.0200.08020.38
5.6.160.0130.08320.41
5.6.150.0030.07018.15
5.6.140.0070.08318.11
5.6.130.0130.05718.19
5.6.120.0070.07320.96
5.6.110.0100.08020.89
5.6.100.0130.08021.00
5.6.90.0130.08321.11
5.6.80.0070.05720.39
5.6.70.3400.04020.37
5.5.350.0130.03320.41
5.5.340.0170.07017.91
5.5.330.0130.08020.19
5.5.320.0130.04720.20
5.5.310.0270.03720.17
5.5.300.0030.04018.02
5.5.290.0070.08717.98
5.5.280.0070.06320.73
5.5.270.0130.07320.65
5.5.260.0030.04320.75
5.5.250.0170.07320.68
5.5.240.0030.03720.12
5.4.450.0070.04019.46
5.4.440.0600.06019.32
5.4.430.0100.06019.54
5.4.420.0200.04719.41
5.4.410.0130.05019.21
5.4.400.0100.05019.16
5.4.390.0200.04718.97
5.4.380.0100.05319.06
5.4.370.0070.05318.99
5.4.360.0030.05719.07
5.4.350.0100.06019.03
5.4.340.0030.05718.93
5.4.320.0170.04719.11
5.4.310.0100.05319.11
5.4.300.0070.05719.13
5.4.290.0200.04018.96
5.4.280.0130.04719.15
5.4.270.0070.05318.91
5.4.260.0170.04719.10
5.4.250.0270.03719.01
5.4.240.0170.04719.10
5.4.230.0000.06018.91
5.4.220.0100.05719.10
5.4.210.0170.04719.01
5.4.200.0130.04316.80
5.4.190.0030.05719.03
5.4.180.0070.05318.91
5.4.170.0130.06718.97
5.4.160.0170.04319.00
5.4.150.0130.04718.89
5.4.140.0000.05716.36
5.4.130.0170.04016.34
5.4.120.0100.04716.13
5.4.110.0130.04316.18
5.4.100.0170.04716.18
5.4.90.0100.06016.41
5.4.80.0170.04016.16
5.4.70.0200.04316.39
5.4.60.0100.06716.39
5.4.50.0130.04716.53
5.4.40.0100.07016.10
5.4.30.0070.07016.34
5.4.20.0030.06016.31
5.4.10.0200.05016.39
5.4.00.0130.06315.98
5.3.290.0130.06014.44
5.3.280.0070.05314.62
5.3.270.0100.05714.54
5.3.260.0100.05314.50
5.3.250.0070.05314.45
5.3.240.0030.05714.44
5.3.230.0070.05314.52
5.3.220.0170.04714.31
5.3.210.0130.05314.61
5.3.200.0100.05014.59
5.3.190.0130.04714.43
5.3.180.0170.04314.49
5.3.170.0100.05014.41
5.3.160.0100.04714.43
5.3.150.0200.04014.43
5.3.140.0200.04014.58
5.3.130.0070.05314.45
5.3.120.0070.05314.39
5.3.110.0000.06014.55
5.3.100.0170.04313.95
5.3.90.0130.04713.92
5.3.80.0030.05313.95
5.3.70.0100.04713.86
5.3.60.0030.05713.84
5.3.50.0130.05013.95
5.3.40.0130.04313.95
5.3.30.0030.05313.88
5.3.20.0200.03713.55
5.3.10.0130.04313.57
5.3.00.0070.05013.65
5.2.170.0000.04711.08
5.2.160.0070.04011.08
5.2.150.0070.04311.01
5.2.140.0070.04011.18
5.2.130.0200.02710.88
5.2.120.0030.04310.99
5.2.110.0070.04011.19
5.2.100.0100.05710.94
5.2.90.0100.04011.02
5.2.80.0030.06711.04
5.2.70.0170.05311.09
5.2.60.0100.03710.96
5.2.50.0070.04010.91
5.2.40.0070.04710.86
5.2.30.0070.05011.01
5.2.20.0100.04310.96
5.2.10.0030.04310.90
5.2.00.0130.03310.78
5.1.60.0030.03710.05
5.1.50.0100.0309.98
5.1.40.0100.0309.89
5.1.30.0000.04010.28
5.1.20.0100.03010.25
5.1.10.0030.0379.98
5.1.00.0030.03710.10
5.0.50.0030.0308.45
5.0.40.0070.0238.34
5.0.30.0070.0408.14
5.0.20.0030.0278.23
5.0.10.0030.0308.21
5.0.00.0000.0508.20
4.4.90.0070.0205.88
4.4.80.0030.0205.84
4.4.70.0000.0275.88
4.4.60.0000.0235.83
4.4.50.0000.0235.85
4.4.40.0000.0375.75
4.4.30.0000.0235.73
4.4.20.0030.0305.89
4.4.10.0100.0175.96
4.4.00.0030.0335.89
4.3.110.0000.0235.79
4.3.100.0030.0275.70
4.3.90.0030.0235.76
4.3.80.0130.0235.78
4.3.70.0070.0175.69
4.3.60.0030.0205.83
4.3.50.0030.0205.75
4.3.40.0030.0335.61
4.3.30.0000.0274.44
4.3.20.0130.0134.54
4.3.10.0030.0204.48
4.3.00.0270.01715.68

preferences:
39.61 ms | 400 KiB | 5 Q