3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'https://cdn.rawgit.com/thomasjbradley/signature-to-image/blob/master/signature-to-image.php'; $img = sigJsonToImage(file_get_contents('https://cdn.rawgit.com/thomasjbradley/signature-to-image/blob/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.43
8.3.50.0120.00522.06
8.3.40.0000.01418.72
8.3.30.0080.00819.04
8.3.20.0090.00020.25
8.3.10.0000.00821.92
8.3.00.0040.00422.58
8.2.180.0120.00616.63
8.2.170.0100.00322.96
8.2.160.0030.01420.76
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00417.63
8.2.110.0030.00622.26
8.2.100.0070.00719.45
8.2.90.0000.00819.08
8.2.80.0000.00819.77
8.2.70.0000.00817.38
8.2.60.0070.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00418.05
8.2.30.0030.00617.95
8.2.20.0040.00417.81
8.2.10.0030.00517.86
8.2.00.0000.00817.66
8.1.280.0100.01025.92
8.1.270.0040.00421.94
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.83
8.1.230.0060.00619.12
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0070.00317.25
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0000.00722.11
8.1.150.0040.00418.60
8.1.140.0000.00717.42
8.1.130.0000.00817.78
8.1.120.0040.00417.38
8.1.110.0050.00317.46
8.1.100.0050.00217.38
8.1.90.0040.00417.29
8.1.80.0040.00417.43
8.1.70.0050.00217.34
8.1.60.0040.00417.49
8.1.50.0080.00017.44
8.1.40.0000.00817.52
8.1.30.0000.00817.55
8.1.20.0000.00817.60
8.1.10.0000.00717.64
8.1.00.0030.00617.52
8.0.300.0030.00318.77
8.0.290.0040.00417.18
8.0.280.0000.00718.44
8.0.270.0030.00317.27
8.0.260.0000.00616.87
8.0.250.0030.00317.08
8.0.240.0090.00016.99
8.0.230.0000.00717.00
8.0.220.0040.00416.95
8.0.210.0030.00316.91
8.0.200.0030.00317.05
8.0.190.0000.00717.10
8.0.180.0070.00017.09
8.0.170.0020.00517.07
8.0.160.0040.00417.08
8.0.150.0040.00417.00
8.0.140.0030.00317.05
8.0.130.0000.00613.45
8.0.120.0040.00416.92
8.0.110.0050.00316.94
8.0.100.0000.00717.14
8.0.90.0000.00716.89
8.0.80.0060.00917.03
8.0.70.0080.00017.03
8.0.60.0000.00716.98
8.0.50.0050.00317.09
8.0.30.0090.01317.13
8.0.20.0130.00617.40
8.0.10.0000.00716.99
8.0.00.0090.00916.88
7.4.330.0070.00015.00
7.4.320.0000.00616.52
7.4.300.0030.00316.57
7.4.290.0000.00716.63
7.4.280.0070.00316.63
7.4.270.0030.00316.54
7.4.260.0040.00416.47
7.4.250.0040.00416.62
7.4.240.0030.00416.56
7.4.230.0040.00416.38
7.4.220.0200.00316.66
7.4.210.0110.00616.63
7.4.200.0050.00216.72
7.4.190.0000.00716.66
7.4.160.0060.01116.52
7.4.150.0170.00317.40
7.4.140.0130.00517.86
7.4.130.0130.00416.54
7.4.120.0110.00616.41
7.4.110.0030.01316.33
7.4.100.0080.01016.61
7.4.90.0090.00916.61
7.4.80.0140.00419.39
7.4.70.0100.01016.63
7.4.60.0030.01316.44
7.4.50.0030.00316.76
7.4.40.0120.00322.77
7.4.30.0060.01216.52
7.4.00.0030.01314.97
7.3.330.0000.00513.01
7.3.320.0060.00012.99
7.3.310.0030.00316.21
7.3.300.0030.00316.38
7.3.290.0040.01116.24
7.3.280.0080.00816.33
7.3.270.0110.00717.40
7.3.260.0090.00916.26
7.3.250.0110.00816.36
7.3.240.0190.00616.28
7.3.230.0080.00816.39
7.3.210.0170.00016.28
7.3.200.0120.00819.39
7.3.190.0070.01416.43
7.3.180.0060.00916.18
7.3.170.0100.01016.32
7.3.160.0120.00916.18
7.3.120.0110.00414.67
7.3.10.0140.00316.09
7.3.00.0060.00616.21
7.2.330.0070.01016.52
7.2.320.0160.00716.55
7.2.310.0110.01116.67
7.2.300.0030.01316.34
7.2.290.0100.01116.27
7.2.130.0060.00916.11
7.2.120.0140.00316.61
7.2.110.0080.00316.55
7.2.100.0030.01116.27
7.2.90.0090.00916.73
7.2.80.0070.00416.31
7.2.70.0040.01116.72
7.2.60.0050.00816.39
7.2.50.0050.00816.43
7.2.40.0110.01116.18
7.2.30.0120.00916.30
7.2.20.0120.00616.37
7.2.10.0140.00416.46
7.2.00.0000.01217.77
7.1.250.0070.01015.22
7.1.200.0030.00315.47
7.1.100.0060.00618.00
7.1.70.0000.00816.95
7.1.60.0000.02419.82
7.1.50.0180.00716.81
7.1.00.0070.07322.54
7.0.200.0100.00716.43
7.0.140.0000.07022.08
7.0.60.0000.04319.99
7.0.50.0130.07317.88
7.0.40.0130.08320.31
7.0.30.0230.05320.00
7.0.20.0200.03720.04
7.0.10.0130.04320.16
7.0.00.0030.05320.01
5.6.280.0100.06720.89
5.6.210.0100.06720.66
5.6.200.0030.05318.22
5.6.190.0130.08020.67
5.6.180.3230.04020.67
5.6.170.0270.03720.50
5.6.160.0000.04720.32
5.6.150.0030.04718.12
5.6.140.0130.03318.10
5.6.130.0030.05318.07
5.6.120.0000.08721.09
5.6.110.0170.06320.95
5.6.100.0100.07320.98
5.6.90.0070.04320.97
5.6.80.0070.04020.41
5.6.70.0370.06720.39
5.5.350.0030.08320.30
5.5.340.0100.03317.98
5.5.330.0130.08320.08
5.5.320.0300.05020.30
5.5.310.0230.08320.20
5.5.300.0100.07717.91
5.5.290.0100.04718.02
5.5.280.0100.06320.96
5.5.270.0000.06320.79
5.5.260.0070.08020.96
5.5.250.0130.07020.78
5.5.240.0200.06320.14
5.4.450.0130.06319.34
5.4.440.0170.06019.48
5.4.430.0070.05719.48
5.4.420.0100.05719.40
5.4.410.0100.05719.39
5.4.400.0200.05018.80
5.4.390.0130.06318.73
5.4.380.0200.06018.74
5.4.370.0230.05718.74
5.4.360.0200.05018.59
5.4.350.0200.05018.77
5.4.340.0200.05018.63
5.4.320.0070.03512.46
5.4.310.0040.04912.46
5.4.300.0060.03812.47
5.4.290.0050.04812.46
5.4.280.0030.04012.36
5.4.270.0070.07318.95
5.4.260.0130.06719.00
5.4.250.0100.07019.00
5.4.240.0130.07019.00
5.4.230.0030.06318.97
5.4.220.0130.05318.84
5.4.210.0100.06019.07
5.4.200.0000.06019.00
5.4.190.0200.06318.97
5.4.180.0230.06018.75
5.4.170.0130.06018.98
5.4.160.0070.05718.93
5.4.150.0100.07018.99
5.4.140.0070.06716.67
5.4.130.0130.05316.38
5.4.120.0130.07316.48
5.4.110.0170.07316.56
5.4.100.0070.06016.45
5.4.90.0170.06316.51
5.4.80.0070.07016.39
5.4.70.0100.05016.57
5.4.60.0170.05716.55
5.4.50.0030.05016.33
5.4.40.0100.06716.59
5.4.30.0170.04316.56
5.4.20.0070.05016.60
5.4.10.0100.05016.29
5.4.00.0100.04715.84
5.3.290.0090.04512.80
5.3.280.0100.04714.71
5.3.270.0000.08014.75
5.3.260.0130.06714.73
5.3.250.0100.06014.81
5.3.240.0170.04714.80
5.3.230.0130.06314.77
5.3.220.0100.06014.63
5.3.210.0030.05714.56
5.3.200.0030.07714.56
5.3.190.0230.06014.50
5.3.180.0100.07014.55
5.3.170.0070.05314.52
5.3.160.0100.05314.52
5.3.150.0200.04714.38
5.3.140.0100.05314.75
5.3.130.0130.07014.48
5.3.120.0130.05014.55
5.3.110.0100.07014.70
5.3.100.0070.05314.02
5.3.90.0070.05314.01
5.3.80.0130.05014.07
5.3.70.0070.05714.10
5.3.60.0070.05014.08
5.3.50.0130.05714.06
5.3.40.0030.05714.11
5.3.30.0100.04714.06
5.3.20.0100.05713.84
5.3.10.0170.07013.58
5.3.00.0100.05713.57
5.2.170.0130.04011.19
5.2.160.0100.06011.25
5.2.150.0100.05310.98
5.2.140.0170.05011.19
5.2.130.0030.06311.23
5.2.120.0070.04311.03
5.2.110.0070.04011.34
5.2.100.0170.05311.32
5.2.90.0100.03711.03
5.2.80.0030.06011.23
5.2.70.0070.04011.08
5.2.60.0000.06711.11
5.2.50.0070.04311.16
5.2.40.0100.04010.81
5.2.30.0070.04710.92
5.2.20.0070.06010.96
5.2.10.0070.04710.63
5.2.00.0070.06010.57
5.1.60.0030.03710.20
5.1.50.0130.03310.11
5.1.40.0100.03310.29
5.1.30.0030.04010.44
5.1.20.0100.03310.20
5.1.10.0030.04310.05
5.1.00.0030.04710.39
5.0.50.0070.0278.75
5.0.40.0030.0408.64
5.0.30.0070.0408.27
5.0.20.0100.0278.47
5.0.10.0070.0378.45
5.0.00.0130.0378.16
4.4.90.0030.0337.52
4.4.80.0070.0207.52
4.4.70.0000.0237.52
4.4.60.0100.0137.52
4.4.50.0000.0237.52
4.4.40.0130.0307.52
4.4.30.0030.0207.52
4.4.20.0070.0237.52
4.4.10.0000.0307.52
4.4.00.0000.0407.52
4.3.110.0000.0237.52
4.3.100.0000.0337.52
4.3.90.0070.0177.52
4.3.80.0030.0337.52
4.3.70.0070.0177.52
4.3.60.0030.0277.52
4.3.50.0030.0307.52
4.3.40.0070.0407.52
4.3.30.0000.0237.52
4.3.20.0000.0307.52
4.3.10.0030.0237.52
4.3.00.0070.0206.99

preferences:
39.55 ms | 401 KiB | 5 Q