3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 43951789; $u = -43951789; $c = 65; // ASCII 65 is 'A' // notice the double %%, this prints a literal '%' character printf("%%b = '%b'\n", $n); // binary representation printf("%%c = '%c'\n", $c); // print the ascii character, same as chr() function printf("%%d = '%d'\n", $n); // standard integer representation printf("%%e = '%e'\n", $n); // scientific notation printf("%%u = '%u'\n", $n); // unsigned integer representation of a positive integer printf("%%u = '%u'\n", $u); // unsigned integer representation of a negative integer printf("%%f = '%f'\n", $n); // floating point representation printf("%%o = '%o'\n", $n); // octal representation printf("%%s = '%s'\n", $n); // string representation printf("%%x = '%x'\n", $n); // hexadecimal representation (lower-case) printf("%%X = '%X'\n", $n); // hexadecimal representation (upper-case) printf("%%+d = '%+d'\n", $n); // sign specifier on a positive integer printf("%%+d = '%+d'\n", $u); // sign specifier on a negative integer

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.0140.00416.50
8.3.50.0070.00719.62
8.3.40.0110.00418.51
8.3.30.0040.01118.92
8.3.20.0040.00420.21
8.3.10.0040.00423.54
8.3.00.0040.00717.38
8.2.180.0080.01116.63
8.2.170.0000.01522.96
8.2.160.0070.00720.21
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0030.01426.16
8.2.120.0040.00421.01
8.2.110.0060.00319.45
8.2.100.0090.00317.77
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0030.00517.80
8.2.50.0000.01118.07
8.2.40.0080.00018.10
8.2.30.0000.00718.09
8.2.20.0080.00017.70
8.2.10.0040.00417.91
8.2.00.0000.00717.61
8.1.280.0070.00725.92
8.1.270.0060.00323.88
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00022.02
8.1.230.0040.00718.95
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0070.00317.22
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0000.00718.84
8.1.150.0040.00420.07
8.1.140.0030.00517.34
8.1.130.0030.00317.73
8.1.120.0000.00717.29
8.1.110.0050.00317.29
8.1.100.0040.00417.42
8.1.90.0040.00417.41
8.1.80.0000.00817.40
8.1.70.0030.00317.34
8.1.60.0000.00817.41
8.1.50.0030.00517.37
8.1.40.0040.00717.40
8.1.30.0000.00817.55
8.1.20.0060.00317.60
8.1.10.0000.00717.43
8.1.00.0000.00717.28
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0000.00718.28
8.0.270.0000.00717.19
8.0.260.0000.00617.18
8.0.250.0070.00016.87
8.0.240.0080.00016.77
8.0.230.0070.00016.78
8.0.220.0000.00716.71
8.0.210.0050.00516.84
8.0.200.0000.00716.88
8.0.190.0000.00716.92
8.0.180.0070.00016.76
8.0.170.0070.00016.84
8.0.160.0030.00616.84
8.0.150.0040.00416.78
8.0.140.0070.00016.82
8.0.130.0000.00513.25
8.0.120.0080.00016.74
8.0.110.0070.00016.77
8.0.100.0050.00216.64
8.0.90.0070.00016.80
8.0.80.0000.01516.76
8.0.70.0000.00716.71
8.0.60.0000.00716.93
8.0.50.0040.00416.61
8.0.30.0100.01016.97
8.0.20.0120.00717.40
8.0.10.0060.00316.95
8.0.00.0100.01116.76
7.4.330.0030.00315.00
7.4.320.0030.00316.45
7.4.300.0030.00316.52
7.4.290.0000.00716.52
7.4.280.0050.00216.50
7.4.270.0070.00016.45
7.4.260.0050.00216.40
7.4.250.0000.00716.46
7.4.240.0020.00516.45
7.4.230.0040.00416.24
7.4.220.0090.00916.42
7.4.210.0090.00916.57
7.4.200.0030.00316.35
7.4.160.0060.00916.38
7.4.150.0140.00717.40
7.4.140.0120.01117.86
7.4.130.0100.00916.32
7.4.120.0090.01116.23
7.4.110.0060.01216.32
7.4.100.0030.01316.48
7.4.90.0170.01016.43
7.4.80.0200.00917.84
7.4.70.0180.00916.36
7.4.60.0210.00616.48
7.4.50.0120.01116.35
7.4.40.0230.00316.34
7.4.30.0200.00616.19
7.4.20.0300.00716.41
7.4.10.0290.00716.39
7.4.00.0100.01015.68
7.3.330.0000.00512.89
7.3.320.0060.00013.04
7.3.310.0070.00016.19
7.3.300.0030.00316.11
7.3.290.0030.01016.09
7.3.280.0080.00816.14
7.3.270.0160.00317.40
7.3.260.0100.00716.36
7.3.250.0060.01216.29
7.3.240.0090.01216.41
7.3.230.0110.00616.39
7.3.210.0190.01116.03
7.3.200.0130.01517.74
7.3.190.0220.01116.25
7.3.180.0200.00816.28
7.3.170.0190.00816.30
7.3.160.0190.00916.29
7.3.150.0310.00516.34
7.3.140.0230.01216.07
7.3.130.0280.00816.18
7.3.120.0230.01616.28
7.3.110.0190.01516.15
7.3.100.0250.00616.28
7.3.90.0220.01316.34
7.3.80.0270.00816.46
7.3.70.0180.01116.32
7.3.60.0300.00316.36
7.3.50.0240.00916.29
7.3.40.0250.01116.38
7.3.30.0190.01116.25
7.3.20.0360.00716.13
7.3.10.0150.00516.36
7.3.00.0130.00716.26
7.2.330.0200.00916.33
7.2.320.0190.00916.45
7.2.310.0180.01116.31
7.2.300.0250.00616.55
7.2.290.0150.01116.52
7.2.280.0340.01116.53
7.2.270.0300.00716.37
7.2.260.0260.01016.37
7.2.250.0310.00416.10
7.2.240.0260.01216.25
7.2.230.0280.00716.37
7.2.220.0300.00716.44
7.2.210.0200.01716.59
7.2.200.0230.01016.31
7.2.190.0230.01416.38
7.2.180.0200.01316.35
7.2.170.0270.00916.40
7.2.160.0210.01316.38
7.2.150.0230.01216.43
7.2.140.0250.01316.41
7.2.130.0120.00516.46
7.2.120.0110.00916.59
7.2.110.0090.01016.67
7.2.100.1250.00715.94
7.2.90.1330.00916.23
7.2.80.1110.00615.99
7.2.70.0960.00916.26
7.2.60.0670.00816.11
7.2.50.0940.00716.12
7.2.40.0700.00916.10
7.2.30.0880.00916.15
7.2.20.0710.00616.10
7.2.10.0770.00516.08
7.2.00.0810.00615.94
7.1.330.0160.01715.57
7.1.320.0200.01015.57
7.1.310.0130.01515.52
7.1.300.0280.00015.37
7.1.290.0220.00915.52
7.1.280.0230.00715.41
7.1.270.0180.01115.62
7.1.260.0230.00615.40
7.1.250.0110.00615.53
7.1.240.0200.01115.23
7.1.230.0210.00815.56
7.1.220.2190.01014.36
7.1.210.2350.01414.64
7.1.200.1290.00714.91
7.1.190.2760.01414.45
7.1.180.1690.00914.63
7.1.170.1640.01014.68
7.1.160.1600.00914.53
7.1.150.1580.00714.67
7.1.140.1490.00814.57
7.1.130.1050.01014.56
7.1.120.1300.00814.61
7.1.110.1450.01014.67
7.1.100.1050.01015.75
7.1.90.0630.00914.81
7.1.80.0410.00614.59
7.1.70.0490.00815.30
7.1.60.0290.01021.37
7.1.50.0450.01227.28
7.1.40.0320.01023.65
7.1.30.0350.01123.62
7.1.20.0580.01523.74
7.1.10.0570.00814.56
7.1.00.0560.03217.18
7.0.330.0230.00314.98
7.0.320.0230.00615.14
7.0.310.2080.00914.30
7.0.300.1430.00514.42
7.0.290.1410.00914.44
7.0.280.1260.00714.16
7.0.270.1290.01014.38
7.0.260.1660.00314.20
7.0.250.1600.00914.19
7.0.240.1230.00214.33
7.0.230.0240.00914.24
7.0.220.0450.00814.40
7.0.210.0480.00714.20
7.0.200.0360.00915.04
7.0.190.0520.00814.14
7.0.180.0570.00914.26
7.0.170.1110.01214.49
7.0.160.0690.00914.35
7.0.150.0600.00714.47
7.0.140.0390.02816.90
7.0.130.0630.00814.37
7.0.120.0640.00714.28
7.0.110.0520.01214.44
7.0.100.0610.00214.19
7.0.90.0540.01114.39
7.0.80.1330.00614.41
7.0.70.0460.01014.26
7.0.60.0360.02216.12
7.0.50.0380.02015.48
7.0.40.0350.02316.27
7.0.30.0390.02216.16
7.0.20.0360.03216.29
7.0.10.0300.02716.35
7.0.00.0290.02516.23
5.6.400.0170.01415.90
5.6.390.0180.01415.47
5.6.380.0160.00914.71
5.6.370.0210.00914.96
5.6.360.0200.00815.06
5.6.350.0210.01114.93
5.6.340.0190.00714.79
5.6.330.0170.01215.09
5.6.320.0180.01014.82
5.6.310.0130.01414.98
5.6.300.0150.01114.99
5.6.290.0180.01015.03
5.6.280.0170.02516.97
5.6.270.0180.00915.13
5.6.260.0160.00914.89
5.6.250.0100.01815.04
5.6.240.0200.00614.98
5.6.230.0160.01015.00
5.6.220.0200.00614.97
5.6.210.0160.02416.82
5.6.200.0110.02315.99
5.6.190.0150.03516.83
5.6.180.0200.02216.68
5.6.170.0220.01716.80
5.6.160.0120.02516.67
5.6.150.0120.02515.95
5.6.140.0140.01815.94
5.6.130.0130.03515.99
5.6.120.0160.03216.94
5.6.110.0120.02416.96
5.6.100.0230.02716.98
5.6.90.0140.03716.88
5.6.80.0120.02016.78
5.6.70.0170.00714.88
5.6.60.0200.00414.92
5.6.50.0180.01014.89
5.6.40.0140.01114.91
5.6.30.0190.00614.97
5.6.20.0150.01114.95
5.6.10.0190.00814.89
5.6.00.0190.01014.88
5.5.380.0140.01013.20
5.5.370.0140.01113.28
5.5.360.0210.00513.13
5.5.350.0940.01715.70
5.5.340.0160.03114.85
5.5.330.0110.03215.57
5.5.320.0180.03215.52
5.5.310.0190.03415.67
5.5.300.0170.02514.89
5.5.290.0140.02114.73
5.5.280.0130.03315.61
5.5.270.0140.03215.69
5.5.260.0120.02115.63
5.5.250.0150.02515.68
5.5.240.0120.01915.59
5.5.230.0190.00713.32
5.5.220.0190.00413.21
5.5.210.0150.00913.28
5.5.200.0120.01313.29
5.5.190.0130.01113.18
5.5.180.0150.00813.03
5.5.170.0200.00614.55
5.5.160.0160.00913.17
5.5.150.0170.00813.14
5.5.140.0150.00913.21
5.5.130.0180.00612.98
5.5.120.0210.00413.24
5.5.110.0170.00913.22
5.5.100.0200.00413.28
5.5.90.0170.00813.25
5.5.80.0170.00613.26
5.5.70.0160.00713.24
5.5.60.0150.00813.27
5.5.50.0110.01113.09
5.5.40.0140.00913.29
5.5.30.0150.00613.20
5.5.20.0170.00413.27
5.5.10.0160.01013.17
5.5.00.0180.00813.15
5.4.450.0350.02514.30
5.4.440.0370.02214.30
5.4.430.0290.02614.31
5.4.420.0400.01914.38
5.4.410.0320.02414.29
5.4.400.0360.02114.17
5.4.390.0320.02514.16
5.4.380.0130.02113.91
5.4.370.0130.01813.96
5.4.360.0190.01713.81
5.4.350.0110.01611.70
5.4.340.0110.02111.72
5.4.330.0120.00611.67
5.4.320.0100.01911.91
5.4.310.0090.02011.85
5.4.300.0100.01811.92
5.4.290.0120.02011.88
5.4.280.0110.01711.93
5.4.270.0100.01911.84
5.4.260.0110.01911.83
5.4.250.0120.01811.81
5.4.240.0120.01811.88
5.4.230.0100.01911.87
5.4.220.0140.01611.80
5.4.210.0100.01711.82
5.4.200.0080.02111.87
5.4.190.0130.01511.77
5.4.180.0120.01911.78
5.4.170.0120.01511.83
5.4.160.0100.01811.82
5.4.150.0110.01611.74
5.4.140.0130.01711.77
5.4.130.0110.01911.68
5.4.120.0130.01811.68
5.4.110.0080.02011.75
5.4.100.0080.02111.69
5.4.90.0070.02211.72
5.4.80.0120.01911.72
5.4.70.0070.02011.68
5.4.60.0120.01711.79
5.4.50.0100.02011.76
5.4.40.0120.01411.70
5.4.30.0100.01511.72
5.4.20.0100.01711.78
5.4.10.0130.01311.67
5.4.00.0100.01611.57
4.3.110.0000.00318.10

preferences:
48.94 ms | 400 KiB | 5 Q