3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'http://rawgit.com/thomasjbradley/signature-to-image/blob/master/signature-to-image.php'; $img = sigJsonToImage(file_get_contents('http://rawgit.com/thomasjbradley/signature-to-image/blame/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.60.0090.00618.68
8.3.50.0100.00621.95
8.3.40.0080.00818.71
8.3.30.0110.01119.11
8.3.20.0060.00320.35
8.3.10.0070.00022.14
8.3.00.0040.00422.35
8.2.180.0130.01016.48
8.2.170.0120.00322.96
8.2.160.0070.00720.98
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00019.95
8.2.110.0000.00922.20
8.2.100.0040.00719.57
8.2.90.0040.00419.26
8.2.80.0000.00819.62
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0030.00918.07
8.2.40.0040.00418.09
8.2.30.0000.01118.13
8.2.20.0050.00317.71
8.2.10.0050.00217.62
8.2.00.0040.00417.79
8.1.280.0090.00625.92
8.1.270.0060.00322.09
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0090.00023.96
8.1.230.0070.00319.14
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0100.00017.36
8.1.190.0000.00817.40
8.1.180.0060.00318.10
8.1.170.0050.00318.46
8.1.160.0070.00022.06
8.1.150.0040.00418.54
8.1.140.0030.00617.30
8.1.130.0040.00417.76
8.1.120.0000.00817.26
8.1.110.0000.00717.24
8.1.100.0060.00317.40
8.1.90.0050.00317.33
8.1.80.0000.00817.39
8.1.70.0030.00317.36
8.1.60.0080.00317.47
8.1.50.0000.00717.52
8.1.40.0030.00617.52
8.1.30.0000.00717.65
8.1.20.0080.00017.51
8.1.10.0020.00517.62
8.1.00.0000.00717.38
8.0.300.0030.00518.77
8.0.290.0000.00717.28
8.0.280.0000.00718.43
8.0.270.0000.00817.34
8.0.260.0030.00316.82
8.0.250.0030.00317.13
8.0.240.0030.00817.02
8.0.230.0000.00717.09
8.0.220.0030.00316.96
8.0.210.0050.00317.00
8.0.200.0000.00617.14
8.0.190.0070.00016.98
8.0.180.0040.00416.95
8.0.170.0000.00816.95
8.0.160.0040.00417.08
8.0.150.0020.00516.83
8.0.140.0030.00616.98
8.0.130.0030.00313.45
8.0.120.0040.00416.94
8.0.110.0040.00416.91
8.0.100.0000.00716.89
8.0.90.0020.00517.09
8.0.80.0110.01117.01
8.0.70.0040.00416.99
8.0.60.0070.00016.98
8.0.50.0040.00416.89
8.0.30.0100.01117.06
8.0.20.0120.00717.40
8.0.10.0040.00416.80
8.0.00.0080.01316.78
7.4.330.0070.00015.00
7.4.320.0030.00316.55
7.4.300.0030.00316.50
7.4.290.0070.00016.37
7.4.280.0030.00616.45
7.4.270.0030.00316.50
7.4.260.0030.00316.57
7.4.250.0040.00416.57
7.4.240.0070.00016.58
7.4.230.0000.00716.34
7.4.220.0090.01216.54
7.4.210.0130.00316.69
7.4.200.0070.00016.71
7.4.190.0070.00016.70
7.4.160.0180.00316.46
7.4.150.0100.00717.40
7.4.140.0110.00917.86
7.4.130.0100.01116.45
7.4.120.0110.00816.46
7.4.110.0080.00816.59
7.4.100.0120.00616.39
7.4.90.0100.00716.38
7.4.80.0180.00419.39
7.4.70.0100.00616.43
7.4.60.0140.00316.52
7.4.50.0000.00716.39
7.4.40.0140.00322.77
7.4.30.0090.00916.45
7.4.00.0060.01014.87
7.3.330.0030.00313.11
7.3.320.0030.00313.14
7.3.310.0040.00416.32
7.3.300.0070.00016.26
7.3.290.0070.01116.37
7.3.280.0090.00616.31
7.3.270.0100.00717.40
7.3.260.0060.01116.52
7.3.250.0100.00816.33
7.3.240.0070.01016.40
7.3.230.0040.01216.41
7.3.210.0080.00816.32
7.3.200.0150.00319.39
7.3.190.0110.03016.18
7.3.180.0070.00716.25
7.3.170.0120.00316.37
7.3.160.0090.00616.37
7.3.120.0100.00614.72
7.2.330.0090.00916.33
7.2.320.0100.00916.54
7.2.310.0170.00016.61
7.2.300.0100.00716.39
7.2.290.0040.01216.51
7.2.00.0060.00619.34
7.1.100.0050.00518.05
7.1.70.0090.00616.90
7.1.60.0060.00617.27
7.1.50.0140.01016.74
7.1.00.0030.07322.36
7.0.200.0060.00916.69
7.0.140.0070.06722.02
7.0.60.0030.07019.84
7.0.50.0130.08017.90
7.0.40.0030.05720.12
7.0.30.0330.05020.13
7.0.20.0230.04720.13
7.0.10.0270.04720.33
7.0.00.0030.08720.12
5.6.280.0030.07320.92
5.6.210.0130.07020.52
5.6.200.0070.08718.15
5.6.190.0100.06020.33
5.6.180.3600.03720.45
5.6.170.0200.06720.49
5.6.160.0030.08720.33
5.6.150.0070.06318.22
5.6.140.0130.05018.18
5.6.130.0030.08018.16
5.6.120.0070.03720.98
5.6.110.0030.08321.13
5.6.100.0000.04720.96
5.6.90.0030.04321.12
5.6.80.0030.07720.37
5.6.70.0230.07320.49
5.5.350.0070.08320.41
5.5.340.0070.07717.93
5.5.330.0100.07720.38
5.5.320.0170.07320.20
5.5.310.0100.04320.26
5.5.300.0070.05717.87
5.5.290.0030.04017.97
5.5.280.0030.07320.64
5.5.270.0170.05020.87
5.5.260.0100.05720.88
5.5.250.0030.08720.68
5.5.240.0130.06320.25
5.4.450.0200.07019.58
5.4.440.0200.05319.24
5.4.430.0030.06319.48
5.4.420.0270.06319.68
5.4.410.0130.05319.57
5.4.400.0030.06318.79
5.4.390.0100.05718.74
5.4.380.0330.05018.46
5.4.370.0270.04718.70
5.4.360.0300.04718.72
5.4.350.0170.05718.71
5.4.340.0200.05018.72
5.4.320.0060.03712.46
5.4.310.0060.03912.45
5.4.300.0050.04212.45
5.4.290.0020.05212.45
5.4.280.0050.03812.35
5.4.270.0030.06319.00
5.4.260.0070.06318.75
5.4.250.0170.05318.87
5.4.240.0130.08018.95
5.4.230.0130.07018.84
5.4.220.0170.06718.92
5.4.210.0100.07718.72
5.4.200.0100.06318.96
5.4.190.0270.06018.87
5.4.180.0130.06318.89
5.4.170.0130.06018.94
5.4.160.0170.07019.12
5.4.150.0030.07018.94
5.4.140.0070.08016.28
5.4.130.0070.05716.28
5.4.120.0130.05016.33
5.4.110.0070.08316.63
5.4.100.0170.06016.32
5.4.90.0100.07016.28
5.4.80.0200.04316.54
5.4.70.0100.06316.31
5.4.60.0130.05316.45
5.4.50.0130.06316.32
5.4.40.0170.06716.60
5.4.30.0100.06316.44
5.4.20.0100.07016.54
5.4.10.0200.05016.45
5.4.00.0200.05315.94
5.3.290.0080.03712.80
5.3.280.0100.05014.75
5.3.270.0030.08014.66
5.3.260.0030.08014.60
5.3.250.0100.06714.67
5.3.240.0070.05714.60
5.3.230.0130.06314.59
5.3.220.0200.05314.38
5.3.210.0130.05714.71
5.3.200.0100.05714.52
5.3.190.0100.07714.65
5.3.180.0170.07014.55
5.3.170.0170.06714.49
5.3.160.0130.06314.73
5.3.150.0100.06314.73
5.3.140.0300.05014.54
5.3.130.0070.07314.71
5.3.120.0070.06014.50
5.3.110.0170.04314.68
5.3.100.0130.06714.02
5.3.90.0100.05014.13
5.3.80.0130.04714.12
5.3.70.0100.06314.08
5.3.60.0170.06014.19
5.3.50.0100.06014.02
5.3.40.0070.07014.03
5.3.30.0130.05313.99
5.3.20.0100.06013.67
5.3.10.0000.06313.76
5.3.00.0070.05713.62
5.2.170.0100.04710.93
5.2.160.0130.04311.25
5.2.150.0100.06011.38
5.2.140.0170.03311.25
5.2.130.0070.05011.24
5.2.120.0170.04311.02
5.2.110.0100.03711.21
5.2.100.0030.04711.33
5.2.90.0070.05011.08
5.2.80.0030.06011.07
5.2.70.0100.06011.30
5.2.60.0100.05311.10
5.2.50.0130.03711.25
5.2.40.0000.06311.22
5.2.30.0070.04311.18
5.2.20.0030.04310.77
5.2.10.0070.05310.91
5.2.00.0030.04710.92
5.1.60.0130.03310.31
5.1.50.0070.03310.32
5.1.40.0100.04310.28
5.1.30.0030.04010.71
5.1.20.0030.05010.44
5.1.10.0030.04010.47
5.1.00.0070.03310.37
5.0.50.0070.0408.72
5.0.40.0000.0378.68
5.0.30.0070.0538.62
5.0.20.0100.0378.39
5.0.10.0030.0408.40
5.0.00.0030.0578.23
4.4.90.0100.0237.48
4.4.80.0030.0237.48
4.4.70.0000.0337.48
4.4.60.0030.0307.48
4.4.50.0030.0307.48
4.4.40.0000.0407.48
4.4.30.0030.0237.48
4.4.20.0100.0237.48
4.4.10.0030.0277.48
4.4.00.0070.0407.48
4.3.110.0000.0277.48
4.3.100.0000.0337.48
4.3.90.0100.0137.48
4.3.80.0000.0477.48
4.3.70.0070.0177.48
4.3.60.0030.0307.48
4.3.50.0100.0207.48
4.3.40.0030.0377.48
4.3.30.0070.0237.48
4.3.20.0030.0307.48
4.3.10.0070.0237.48
4.3.00.0070.0276.88

preferences:
46.8 ms | 401 KiB | 5 Q