3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo sprintf('%03x', 45), "\n", sprintf('%03X', 141);

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.130.0040.00418.09
8.3.120.0060.00320.72
8.3.110.0090.00020.94
8.3.100.0030.00724.06
8.3.90.0050.00326.77
8.3.80.0040.00417.97
8.3.70.0140.00416.50
8.3.60.0110.01116.38
8.3.50.0080.00719.00
8.3.40.0070.00718.67
8.3.30.0060.00918.58
8.3.20.0020.00520.39
8.3.10.0080.00020.41
8.3.00.0050.00323.48
8.2.250.0120.00418.09
8.2.240.0000.00816.79
8.2.230.0050.00322.58
8.2.220.0060.00337.54
8.2.210.0110.00426.77
8.2.200.0060.00316.50
8.2.190.0130.00618.42
8.2.180.0110.00418.41
8.2.170.0110.00422.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00422.11
8.2.120.0000.00826.35
8.2.110.0060.00320.38
8.2.100.0120.00017.78
8.2.90.0050.00319.23
8.2.80.0060.00317.97
8.2.70.0080.00017.50
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0040.00420.54
8.2.30.0000.00719.09
8.2.20.0050.00217.98
8.2.10.0080.00017.99
8.2.00.0070.00017.84
8.1.300.0100.00619.92
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0040.00422.18
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0040.01823.91
8.1.230.0070.00422.75
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0070.00317.10
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0040.00418.55
8.1.160.0070.00018.75
8.1.150.0070.00018.75
8.1.140.0000.00719.06
8.1.130.0070.00018.81
8.1.120.0030.00317.30
8.1.110.0040.00417.26
8.1.100.0040.00417.20
8.1.90.0030.00617.31
8.1.80.0050.00317.37
8.1.70.0000.00717.35
8.1.60.0050.00317.41
8.1.50.0070.00017.32
8.1.40.0040.00417.40
8.1.30.0000.00817.46
8.1.20.0000.00817.46
8.1.10.0040.00417.45
8.1.00.0000.00717.32
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00718.29
8.0.270.0030.00517.18
8.0.260.0030.00316.75
8.0.250.0080.00016.85
8.0.240.0050.00316.86
8.0.230.0040.00416.77
8.0.220.0060.00316.62
8.0.210.0030.00316.71
8.0.200.0000.00616.79
8.0.190.0070.00016.69
8.0.180.0040.00416.76
8.0.170.0040.00416.71
8.0.160.0000.00816.64
8.0.150.0000.00716.63
8.0.140.0000.00716.75
8.0.130.0080.00013.18
8.0.120.0060.00316.75
8.0.110.0000.00716.82
8.0.100.0000.00716.61
8.0.90.0000.00816.57
8.0.80.0070.01016.67
8.0.70.0040.00316.80
8.0.60.0070.00016.79
8.0.50.0030.00516.82
8.0.30.0110.00917.01
8.0.20.0110.00717.40
8.0.10.0070.00016.92
8.0.00.0140.00716.64
7.4.330.0030.00315.55
7.4.320.0060.00016.30
7.4.300.0060.00016.46
7.4.290.0040.00416.49
7.4.280.0030.00616.45
7.4.270.0080.00316.45
7.4.260.0040.00716.47
7.4.250.0000.00716.35
7.4.240.0070.00016.22
7.4.230.0030.00316.41
7.4.220.0000.00716.34
7.4.210.0090.01016.38
7.4.200.0070.00016.29
7.4.160.0120.00616.40
7.4.150.0130.00717.40
7.4.140.0090.01017.86
7.4.130.0090.00916.36
7.4.120.0100.01116.40
7.4.110.0130.00316.29
7.4.100.0160.00316.42
7.4.90.0130.01016.32
7.4.80.0030.01717.71
7.4.70.0070.01016.09
7.4.60.0100.01016.34
7.4.50.0050.01116.40
7.4.40.0080.00916.36
7.4.30.0030.01416.47
7.4.20.0120.00816.34
7.4.10.0100.01416.33
7.4.00.0050.01215.37
7.3.330.0020.00212.96
7.3.320.0000.00612.86
7.3.310.0020.00516.13
7.3.300.0030.00315.98
7.3.290.0080.00816.12
7.3.280.0080.00816.11
7.3.270.0100.00817.40
7.3.260.0110.00716.26
7.3.250.0090.01216.19
7.3.240.0110.00916.31
7.3.230.0060.01216.38
7.3.210.0060.01216.29
7.3.200.0080.01216.31
7.3.190.0110.00816.21
7.3.180.0080.01016.29
7.3.170.0110.00816.31
7.3.160.0130.00316.13
7.3.150.0140.00316.46
7.3.140.0110.00716.12
7.3.130.0090.00916.23
7.3.120.0060.00916.36
7.3.110.0090.01316.10
7.3.100.0150.00316.02
7.3.90.0070.01016.46
7.3.80.0130.00516.33
7.3.70.0130.00515.39
7.3.60.0070.01015.43
7.3.50.0050.00815.35
7.3.40.0090.00615.19
7.3.30.0050.01015.20
7.3.20.0090.00416.32
7.3.10.0070.00816.41
7.3.00.0070.00716.45
7.2.330.0110.00716.59
7.2.320.0060.01216.47
7.2.310.0090.00816.21
7.2.300.0110.01016.39
7.2.290.0060.01016.35
7.2.280.0080.00816.33
7.2.270.0130.01016.57
7.2.260.0070.01016.48
7.2.250.0090.01516.50
7.2.240.0070.01116.42
7.2.230.0070.00716.22
7.2.220.0070.01316.22
7.2.210.0150.00416.23
7.2.200.0100.00415.62
7.2.190.0080.01115.66
7.2.180.0070.01115.55
7.2.170.0110.00615.29
7.2.160.0070.00715.32
7.2.150.0070.01016.68
7.2.140.0070.01016.59
7.2.130.0070.00916.64
7.2.120.0180.00516.69
7.2.110.0230.00516.13
7.2.100.0220.00616.25
7.2.90.0230.00916.21
7.2.80.0210.00616.10
7.2.70.0220.00616.32
7.2.60.0220.00716.35
7.2.50.0170.01016.36
7.2.40.0290.00716.30
7.2.30.0270.00816.33
7.2.20.0230.01016.26
7.2.10.0190.01016.34
7.2.00.0180.00916.87
7.1.330.0070.01015.25
7.1.320.0110.00815.34
7.1.310.0060.01215.47
7.1.300.0080.01015.49
7.1.290.0080.00815.64
7.1.280.0130.00815.52
7.1.270.0060.00815.45
7.1.260.0080.00415.40
7.1.250.0080.00515.48
7.1.240.0070.00715.58
7.1.230.0210.00715.10
7.1.220.0270.00715.10
7.1.210.0240.00715.13
7.1.200.0210.00815.21
7.1.190.0210.00915.08
7.1.180.0230.01115.09
7.1.170.0230.00515.01
7.1.160.0270.00515.15
7.1.150.0230.00715.14
7.1.140.0190.00815.11
7.1.130.0210.00615.13
7.1.120.0230.00915.75
7.1.110.0170.00815.68
7.1.100.0170.00815.60
7.1.90.0220.00715.61
7.1.80.0170.00915.65
7.1.70.0170.01015.51
7.1.60.0270.00821.53
7.1.50.0260.00821.51
7.1.40.0250.00921.25
7.1.30.0220.01221.42
7.1.20.0240.00821.36
7.1.10.0200.01115.42
7.1.00.0210.00815.30
7.0.330.0120.00715.15
7.0.320.0170.01215.20
7.0.310.0300.00315.07
7.0.300.0180.00915.10
7.0.290.0230.00915.20
7.0.280.0130.01715.02
7.0.270.0210.00515.06
7.0.260.0100.01515.09
7.0.250.0220.00415.18
7.0.240.0180.00615.04
7.0.230.0150.00915.22
7.0.220.0190.00615.09
7.0.210.0180.00915.18
7.0.200.0100.01315.06
7.0.190.0170.00715.10
7.0.180.0180.00715.21
7.0.170.0310.00615.22
7.0.160.0280.00414.96
7.0.150.0230.01715.09
7.0.140.0260.00315.23
7.0.130.0190.01515.06
7.0.120.0210.00915.02
7.0.110.0130.01614.90
7.0.100.0160.01215.14
7.0.90.0110.01915.27
7.0.80.0260.00315.29
7.0.70.0200.01515.16
7.0.60.0190.01415.21
7.0.50.0190.00314.95
7.0.40.0170.00314.90
7.0.30.0140.00715.10
7.0.20.0160.01215.07
7.0.10.0090.00914.98
7.0.00.0160.00314.83
5.6.400.0110.01114.58
5.6.390.0130.00914.70
5.6.380.0100.00914.46
5.6.370.0190.01015.78
5.6.360.0220.00915.65
5.6.350.0180.01115.89
5.6.340.0260.00816.04
5.6.330.0150.01215.81
5.6.320.0100.01715.43
5.6.310.0200.00815.54
5.6.300.0170.01515.83
5.6.290.0170.01015.57
5.6.280.0160.01115.57
5.6.270.0230.01015.98
5.6.260.0170.01415.81
5.6.250.0210.01515.69
5.6.240.0250.00815.81
5.6.230.0240.00815.55
5.6.220.0200.01215.63
5.6.210.0190.00915.94
5.6.200.0150.01215.53
5.6.190.0120.01215.52
5.6.180.0050.01615.47
5.6.170.0130.00915.57
5.6.160.0140.01115.47
5.6.150.0140.01715.66
5.6.140.0170.01315.53
5.6.130.0240.01115.76
5.6.120.0230.01015.78
5.6.110.0270.00315.71
5.6.100.0190.01315.53
5.6.90.0210.01215.85
5.6.80.0250.00315.54
5.6.70.0190.01615.64
5.6.60.0160.01315.88
5.6.50.0120.01615.78
5.6.40.0120.01515.54
5.6.30.0120.01515.69
5.6.20.0250.00615.64
5.6.10.0140.01415.81
5.6.00.0110.01815.70

preferences:
28.84 ms | 403 KiB | 5 Q