3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'https://raw.githubusercontent.com/thomasjbradley/signature-to-image/master/signature-to-image.php'; $img = sigJsonToImage(file_get_contents('https://raw.githubusercontent.com/thomasjbradley/signature-to-image/master/examples/signature-from-json/sig-output.json')); // Save to file //imagepng($img, 'signature.png'); // Output to browser header('Content-Type: image/png'); imagepng($img); // Destroy the image in memory when complete imagedestroy($img);

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.00716.63
8.3.60.0120.00318.43
8.3.50.0080.01122.05
8.3.40.0120.00318.96
8.3.30.0030.01219.09
8.3.20.0000.00920.29
8.3.10.0050.00322.14
8.3.00.0040.00422.51
8.2.180.0130.00716.88
8.2.170.0150.00622.96
8.2.160.0100.00320.84
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.24
8.2.110.0060.00322.07
8.2.100.0030.00919.55
8.2.90.0060.00319.26
8.2.80.0030.00519.77
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0030.00718.07
8.2.40.0060.00318.09
8.2.30.0090.00018.05
8.2.20.0030.00517.67
8.2.10.0000.00717.67
8.2.00.0030.00617.63
8.1.280.0110.00425.92
8.1.270.0060.00922.22
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.01123.96
8.1.230.0060.00619.17
8.1.220.0040.00417.78
8.1.210.0030.00518.77
8.1.200.0050.00517.47
8.1.190.0040.00417.41
8.1.180.0080.00018.10
8.1.170.0040.00418.36
8.1.160.0050.00222.08
8.1.150.0000.00718.51
8.1.140.0040.00417.32
8.1.130.0000.00717.69
8.1.120.0100.00017.32
8.1.110.0000.00717.46
8.1.100.0050.00317.38
8.1.90.0000.00917.27
8.1.80.0000.00717.32
8.1.70.0000.00717.43
8.1.60.0030.00617.60
8.1.50.0070.00017.58
8.1.40.0030.00517.49
8.1.30.0080.00017.59
8.1.20.0030.00617.70
8.1.10.0000.00717.61
8.1.00.0030.00517.53
8.0.300.0070.00018.77
8.0.290.0000.00817.18
8.0.280.0070.00018.44
8.0.270.0030.00317.28
8.0.260.0080.00016.89
8.0.250.0030.00317.11
8.0.240.0030.00617.09
8.0.230.0080.00017.01
8.0.220.0030.00317.04
8.0.210.0070.00017.08
8.0.200.0060.00017.10
8.0.190.0000.00816.98
8.0.180.0020.00516.95
8.0.170.0050.00216.97
8.0.160.0050.00217.16
8.0.150.0000.00816.86
8.0.140.0000.00816.98
8.0.130.0060.00013.45
8.0.120.0030.00517.02
8.0.110.0050.00216.99
8.0.100.0000.00717.09
8.0.90.0050.00217.14
8.0.80.0050.01017.03
8.0.70.0070.00017.05
8.0.60.0070.00016.86
8.0.50.0050.00216.86
8.0.30.0130.01117.09
8.0.20.0140.01017.40
8.0.10.0000.00716.82
8.0.00.0090.00916.77
7.4.330.0000.00515.00
7.4.320.0060.00016.51
7.4.300.0030.00316.66
7.4.290.0030.00316.64
7.4.280.0030.00716.53
7.4.270.0000.00716.43
7.4.260.0000.00816.45
7.4.250.0050.00216.54
7.4.240.0000.00716.60
7.4.230.0000.00616.62
7.4.220.0100.00616.40
7.4.210.0100.00916.62
7.4.200.0030.00316.64
7.4.190.0030.00316.78
7.4.160.0050.01016.61
7.4.150.0150.00917.40
7.4.140.0140.00617.86
7.4.130.0080.01016.49
7.4.120.0090.00916.48
7.4.110.0150.00316.48
7.4.100.0080.01116.45
7.4.90.0070.01016.70
7.4.80.0110.00719.39
7.4.70.0100.00716.51
7.4.60.0100.00716.58
7.4.50.0030.00316.57
7.4.40.0060.01022.77
7.4.30.0080.01016.67
7.4.00.0030.01014.63
7.3.330.0030.00313.03
7.3.320.0050.00013.00
7.3.310.0000.00816.09
7.3.300.0040.00416.32
7.3.290.0030.01016.33
7.3.280.0060.01016.29
7.3.270.0130.01317.40
7.3.260.0070.01016.18
7.3.250.0140.00616.47
7.3.240.0060.01016.20
7.3.230.0060.01216.43
7.3.210.0140.00316.38
7.3.200.0110.00619.39
7.3.190.0240.02416.49
7.3.180.0030.01316.46
7.3.170.0040.01216.51
7.3.160.0100.00716.32
7.3.120.0070.01014.64
7.2.330.0070.01016.38
7.2.320.0160.00316.58
7.2.310.0040.01316.52
7.2.300.0120.00416.46
7.2.290.0100.01016.38
7.2.00.0060.00618.95
7.1.100.0030.01018.07
7.1.70.0080.00416.91
7.1.60.0100.01419.82
7.1.50.0040.02116.87
7.1.00.0000.07722.45
7.0.200.0000.01616.43
7.0.140.0100.06722.05
7.0.100.0030.05319.87
7.0.90.0200.07319.92
7.0.80.0100.07719.90
7.0.70.0170.07719.89
7.0.60.0270.06320.05
7.0.50.0130.07720.28
7.0.40.0100.08720.14
7.0.30.0070.09020.11
7.0.20.0070.08720.18
7.0.10.0070.05020.14
7.0.00.0070.08320.07
5.6.280.0130.06320.81
5.6.250.0130.07020.62
5.6.240.0030.08720.68
5.6.230.0070.08020.56
5.6.220.0030.07020.57
5.6.210.0100.07320.66
5.6.200.0130.08020.93
5.6.190.0100.08321.05
5.6.180.0000.07721.07
5.6.170.0170.07321.05
5.6.160.0100.08021.05
5.6.150.0200.07321.10
5.6.140.0030.08721.00
5.6.130.0070.08720.92
5.6.120.0070.07721.07
5.6.110.0030.09021.12
5.6.100.0130.07721.01
5.6.90.0170.06721.00
5.6.80.0100.07020.33
5.6.70.0030.07320.40
5.6.60.0070.08020.30
5.6.50.0000.08720.45
5.6.40.0070.08020.39
5.6.30.0030.08020.48
5.6.20.0130.07320.48
5.6.10.0030.08320.35
5.6.00.0100.07020.29
5.5.380.0030.07720.54
5.5.370.0170.06720.37
5.5.360.0070.08720.55
5.5.350.0130.04720.34
5.5.340.0170.07020.88
5.5.330.0070.08020.88
5.5.320.0070.09020.82
5.5.310.0070.05020.89
5.5.300.0070.08320.89
5.5.290.0030.05720.82
5.5.280.0000.09020.77
5.5.270.0200.06720.80
5.5.260.0200.06720.78
5.5.250.0200.06720.54
5.5.240.0030.08020.21
5.5.230.0130.07020.29
5.5.220.0070.07720.00
5.5.210.0100.07320.13
5.5.200.0100.07720.19
5.5.190.0170.07020.12
5.5.180.0100.08020.13
5.5.160.0070.08320.21
5.5.150.0100.07020.26
5.5.140.0000.07720.21
5.5.130.0100.07320.09
5.5.120.0100.07720.18
5.5.110.0130.06320.16
5.5.100.0070.07720.14
5.5.90.0070.05320.06
5.5.80.0070.08020.09
5.5.70.0100.05720.09
5.5.60.0130.04020.14
5.5.50.0000.07320.11
5.5.40.0030.08319.92
5.5.30.0030.08720.11
5.5.20.0170.06320.13
5.5.10.0100.08320.06
5.5.00.0130.07320.09
5.4.450.0030.08019.27
5.4.440.0000.08719.27
5.4.430.0100.07719.35
5.4.420.0100.07719.55
5.4.410.0100.07019.16
5.4.400.0070.06718.89
5.4.390.0100.06719.07
5.4.380.0030.07019.06
5.4.370.0100.07719.03
5.4.360.0030.08019.15
5.4.350.0000.07319.03
5.4.340.0070.05019.03
5.4.320.0100.04319.12
5.4.310.0070.07719.11
5.4.300.0100.06319.10
5.4.290.0030.04019.19
5.4.280.0170.03718.96
5.4.270.0000.08319.14
5.4.260.0170.05719.12
5.4.250.0030.07719.09
5.4.240.0070.07319.11
5.4.230.0100.06718.78
5.4.220.0170.06719.06
5.4.210.0000.07019.09
5.4.200.0100.06718.90
5.4.190.0100.07719.05
5.4.180.0030.05718.78
5.4.170.0100.06719.13
5.4.160.0130.06719.20
5.4.150.0170.06719.01
5.4.140.0130.06716.36
5.4.130.0100.06016.35
5.4.120.0100.06316.13
5.4.110.0230.05716.44
5.4.100.0070.05716.23
5.4.90.0070.07316.37
5.4.80.0030.07316.43
5.4.70.0000.07716.38
5.4.60.0100.07016.21
5.4.50.0100.06716.32
5.4.40.0030.07316.38
5.4.30.0000.08016.24
5.4.20.0070.05316.41
5.4.10.0170.06716.39
5.4.00.0030.04315.80
5.3.290.0070.06014.50
5.3.280.0130.07014.54
5.3.270.0030.07714.44
5.3.260.0070.07314.55
5.3.250.0100.07014.46
5.3.240.0030.07714.55
5.3.230.0070.07314.47
5.3.220.0030.07314.56
5.3.210.0130.07014.49
5.3.200.0030.08314.43
5.3.190.0030.05714.57
5.3.180.0000.08014.42
5.3.170.0070.07314.56
5.3.160.0070.07314.43
5.3.150.0030.08314.53
5.3.140.0070.06014.43
5.3.130.0070.05714.54
5.3.120.0000.05314.53
5.3.110.0130.07014.47
5.3.100.0100.07313.99
5.3.90.0070.06314.04
5.3.80.0100.06714.01
5.3.70.0100.06313.80
5.3.60.0100.07313.99
5.3.50.0130.06713.89
5.3.40.0070.07313.71
5.3.30.0030.07713.91
5.3.20.0030.07313.61
5.3.10.0030.05313.63
5.3.00.0070.05713.51
5.2.170.0030.06710.97
5.2.160.0030.06711.20
5.2.150.0070.03311.01
5.2.140.0000.06711.09
5.2.130.0070.05711.02
5.2.120.0130.05311.05
5.2.110.0100.06011.02
5.2.100.0030.06011.02
5.2.90.0030.06310.90
5.2.80.0170.04711.11
5.2.70.0030.06311.09
5.2.60.0030.06011.04
5.2.50.0030.06310.86
5.2.40.0070.03011.02
5.2.30.0100.06010.82
5.2.20.0170.04710.96
5.2.10.0100.05710.88
5.2.00.0030.03710.75
5.1.60.0000.05310.06
5.1.50.0000.05310.03
5.1.40.0070.05010.04
5.1.30.0030.03310.40
5.1.20.0130.05010.30
5.1.10.0100.05310.11
5.1.00.0030.05710.13
5.0.50.0070.04010.09
5.0.40.0070.03710.09
5.0.30.0070.06310.09
5.0.20.0100.03710.09
5.0.10.0030.04010.09
5.0.00.0030.06710.09
4.4.90.0030.03310.03
4.4.80.0000.03710.03
4.4.70.0070.03310.03
4.4.60.0070.03010.03
4.4.50.0030.02710.03
4.4.40.0030.04710.03
4.4.30.0030.03310.03
4.4.20.0000.03710.03
4.4.10.0000.03710.09
4.4.00.0100.04710.09
4.3.110.0000.03710.09
4.3.100.0030.03310.09
4.3.90.0030.03310.09
4.3.80.0000.05010.09
4.3.70.0030.03010.09
4.3.60.0000.03010.09
4.3.50.0070.02010.09
4.3.40.0000.04710.09
4.3.30.0000.03710.09
4.3.20.0030.03310.09
4.3.10.0030.03010.09
4.3.00.0000.03310.09

preferences:
80.16 ms | 401 KiB | 5 Q