3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('precision', 100); $foo = PHP_INT_MAX * 2; $expectedString = sprintf("%d", $foo); if ($foo == $expectedString) { echo "true"; } else { //$expectedString = "1.844674407371E+19"; echo "$foo != ".$expectedString.PHP_EOL; $fooAsString = (string)$foo; if (strcmp($expectedString, $fooAsString) === 0) { echo "String representation is the same."; } }

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.40.0060.01318.79
8.3.30.0120.00919.13
8.3.20.0130.00620.32
8.3.10.0150.00323.58
8.3.00.0050.00319.50
8.2.170.0170.00322.96
8.2.160.0140.00720.43
8.2.150.0080.00824.18
8.2.140.0040.01324.66
8.2.130.0150.00426.16
8.2.120.0000.00822.41
8.2.110.0050.00520.65
8.2.100.0090.00318.03
8.2.90.0000.00819.41
8.2.80.0040.00417.97
8.2.70.0080.00017.71
8.2.60.0090.00017.93
8.2.50.0090.00018.07
8.2.40.0060.00318.34
8.2.30.0070.00018.16
8.2.20.0040.00417.70
8.2.10.0040.00418.25
8.2.00.0050.00517.86
8.1.270.0120.00923.84
8.1.260.0110.00726.35
8.1.250.0040.01528.09
8.1.240.0000.00924.02
8.1.230.0040.00719.10
8.1.220.0040.00417.89
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0000.00722.17
8.1.150.0030.00718.87
8.1.140.0040.00417.54
8.1.130.0060.00317.90
8.1.120.0030.00317.59
8.1.110.0030.00617.44
8.1.100.0030.00317.59
8.1.90.0030.00517.62
8.1.80.0000.00717.46
8.1.70.0080.00017.49
8.1.60.0000.00817.68
8.1.50.0040.00417.61
8.1.40.0000.00817.48
8.1.30.0000.00817.62
8.1.20.0040.00417.75
8.1.10.0020.00517.61
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00418.63
8.0.270.0000.00717.34
8.0.260.0000.00717.27
8.0.250.0000.00716.93
8.0.240.0040.00417.04
8.0.230.0050.00217.10
8.0.220.0030.00316.88
8.0.210.0030.00316.87
8.0.200.0070.00016.87
8.0.190.0000.00817.09
8.0.180.0040.00417.04
8.0.170.0020.00517.04
8.0.160.0000.00716.91
8.0.150.0040.00416.84
8.0.140.0000.00716.93
8.0.130.0030.00313.41
8.0.120.0000.00816.97
8.0.110.0030.00517.00
8.0.100.0040.00416.88
8.0.90.0030.00517.01
8.0.80.0090.00616.89
8.0.70.0070.00016.79
8.0.60.0030.00317.07
8.0.50.0000.00816.86
8.0.30.0140.00616.95
8.0.20.0090.01117.40
8.0.10.0040.00417.13
8.0.00.0080.00916.96
7.4.330.0000.00515.00
7.4.320.0030.00316.51
7.4.300.0030.00316.71
7.4.290.0100.00016.70
7.4.280.0040.00416.60
7.4.270.0000.00716.60
7.4.260.0000.00716.53
7.4.250.0000.00716.45
7.4.240.0050.00216.59
7.4.230.0050.00216.64
7.4.220.0040.01416.69
7.4.210.0090.00616.66
7.4.200.0080.00016.74
7.4.160.0030.01316.55
7.4.150.0130.00617.40
7.4.140.0110.00717.86
7.4.130.0210.00416.73
7.4.120.0120.00416.62
7.4.110.0100.01116.62
7.4.100.0100.00716.69
7.4.90.0060.00916.64
7.4.80.0030.02119.39
7.4.70.0160.00416.57
7.4.60.0100.01116.55
7.4.50.0110.00516.50
7.4.40.0150.01516.50
7.4.30.0240.00616.22
7.4.20.0180.00916.39
7.4.10.0130.01016.33
7.4.00.0080.01015.86
7.3.330.0060.00013.25
7.3.320.0050.00013.32
7.3.310.0030.00316.21
7.3.300.0000.00716.41
7.3.290.0110.00316.30
7.3.280.0100.00716.40
7.3.270.0120.00617.40
7.3.260.0120.00616.36
7.3.240.0130.00416.55
7.3.230.0140.00316.40
7.3.210.0150.00316.25
7.3.200.0060.01219.39
7.3.190.0130.00416.70
7.3.180.0120.01316.69
7.3.170.0170.01216.43
7.3.160.0210.00916.38
7.3.150.0200.00616.24
7.3.140.0130.00916.23
7.3.130.0240.00516.37
7.3.120.0060.01815.58
7.3.110.0060.01415.71
7.3.100.0070.00915.57
7.3.90.0060.01215.36
7.3.80.0080.00815.48
7.3.70.0090.00615.40
7.3.60.0080.01115.43
7.3.50.0090.00815.30
7.3.40.0100.00715.38
7.3.30.0090.00915.37
7.3.20.0070.00916.31
7.3.10.0110.00616.38
7.3.00.0140.00716.50
7.2.330.0100.00716.75
7.2.320.0070.01016.82
7.2.310.0000.02416.24
7.2.300.0190.01016.63
7.2.290.0280.00316.58
7.2.280.0220.00716.55
7.2.270.0160.01016.33
7.2.260.0130.01316.48
7.2.250.0130.00915.87
7.2.240.0140.00715.79
7.2.230.0080.00815.72
7.2.220.0170.00315.65
7.2.210.0100.00615.68
7.2.200.0120.00315.62
7.2.190.0140.00515.77
7.2.180.0150.00415.57
7.2.170.0070.01215.62
7.2.160.0130.00616.01
7.2.150.0110.01216.20
7.2.140.0200.00016.32
7.2.130.0200.00716.57
7.2.120.0120.01216.14
7.2.110.0150.00716.13
7.2.100.0180.01516.70
7.2.90.0050.01416.07
7.2.80.0040.01716.13
7.2.70.0150.01516.59
7.2.60.0100.01316.68
7.2.50.0220.00016.18
7.2.40.0060.01416.39
7.2.30.0160.00816.03
7.2.20.0140.00716.18
7.2.10.0300.01216.09
7.2.00.0050.01017.70
7.1.330.0110.01415.96
7.1.320.0160.00515.82
7.1.310.0160.00415.92
7.1.300.0130.00615.73
7.1.290.0240.00615.71
7.1.280.0110.01315.87
7.1.270.0110.01415.88
7.1.260.0210.00515.80
7.1.250.0200.00815.69
7.1.240.0200.00915.61
7.1.230.0110.02015.63
7.1.220.0590.01015.46
7.1.210.0250.00815.62
7.1.200.0250.00015.65
7.1.190.0090.01815.72
7.1.180.0240.00515.70
7.1.170.0250.00315.72
7.1.160.0150.01315.48
7.1.150.0200.01215.76
7.1.140.0200.01015.66
7.1.130.0200.01015.53
7.1.120.0230.00415.48
7.1.110.0260.00315.76
7.1.100.0150.00616.96
7.1.90.0190.00815.65
7.1.80.0210.00915.56
7.1.70.0170.00516.46
7.1.60.0150.01017.52
7.1.50.0100.01416.33
7.1.40.0190.00915.77
7.1.30.0190.00815.84
7.1.20.0210.00615.73
7.1.10.0110.00815.75
7.1.00.0120.03919.11
7.0.330.0140.01515.31
7.0.320.0220.00515.22
7.0.310.0300.00315.39
7.0.300.0230.00615.51
7.0.290.0180.01115.20
7.0.280.0200.00715.45
7.0.270.0180.00715.41
7.0.260.0280.00915.13
7.0.250.0160.01115.30
7.0.240.0160.00915.29
7.0.230.0200.00715.36
7.0.220.0180.00715.33
7.0.210.0170.01015.47
7.0.200.0100.00815.98
7.0.190.0210.00615.38
7.0.180.0250.00015.43
7.0.170.0310.00015.48
7.0.160.0100.00715.27
7.0.150.0100.00715.41
7.0.140.0090.03918.79
7.0.130.0070.01715.25
7.0.120.0040.01215.15
7.0.110.0080.01115.27
7.0.100.0090.00915.23
7.0.90.0260.00315.20
7.0.80.0180.00215.59
7.0.70.0150.00715.24
7.0.60.0140.03917.58
7.0.50.0160.04016.63
7.0.40.0120.02617.85
7.0.30.0250.03017.88
7.0.20.0160.02617.91
7.0.10.0190.02617.76
7.0.00.0090.04417.80
5.6.400.0200.00715.99
5.6.390.0210.00916.11
5.6.380.0290.00315.82
5.6.370.0160.01216.12
5.6.360.0170.01315.86
5.6.350.0130.01615.91
5.6.340.0240.00515.85
5.6.330.0200.00816.04
5.6.320.0190.01215.84
5.6.310.0220.00616.23
5.6.300.0120.00815.91
5.6.290.0060.01316.14
5.6.280.0110.03818.58
5.6.270.0100.00915.89
5.6.260.0100.01216.09
5.6.250.0040.01615.93
5.6.240.0230.00416.11
5.6.230.0110.01115.97
5.6.220.0070.01816.04
5.6.210.0060.02618.34
5.6.200.0100.05017.16
5.6.190.0120.02818.21
5.6.180.0240.03018.31
5.6.170.0170.02618.22
5.6.160.0100.04818.34
5.6.150.0140.04417.14
5.6.140.0130.04217.19
5.6.130.0220.04017.09
5.6.120.0160.04518.52
5.6.110.0220.02918.65
5.6.100.0140.02318.54
5.6.90.0090.04518.59
5.6.80.0090.04418.15
5.6.70.0220.01115.88
5.6.60.0100.01316.10
5.6.50.0200.00415.85
5.6.40.0090.02216.09
5.6.30.0140.00615.77
5.6.20.0180.00415.71
5.6.10.0040.01715.99
5.6.00.0100.01015.98
5.5.380.0110.00815.70
5.5.370.0240.00416.15
5.5.360.0170.01215.96
5.5.350.0150.04318.33
5.5.340.0100.04817.02
5.5.330.0190.04218.21
5.5.320.0250.03218.03
5.5.310.0230.02018.29
5.5.300.0090.04916.96
5.5.290.0170.04316.99
5.5.280.0140.02718.46
5.5.270.0200.04018.26
5.5.260.0110.02618.35
5.5.250.0150.04618.40
5.5.240.0100.02718.03
5.5.230.0160.01316.01
5.5.220.0250.00616.15
5.5.210.0160.00615.81
5.5.200.0130.01015.83
5.5.190.0140.00715.72
5.5.180.0090.01215.80
5.5.170.0130.00815.89
5.5.160.0120.00915.96
5.5.150.0040.01615.67
5.5.140.0040.01615.80
5.5.130.0150.00615.80
5.5.120.0120.01215.86
5.5.110.0200.00315.83
5.5.100.0070.01315.57
5.5.90.0060.01515.78
5.5.80.0140.01115.83
5.5.70.0090.00916.00
5.5.60.0140.00715.77
5.5.50.0110.01115.80
5.5.40.0120.00915.74
5.5.30.0080.01215.98
5.5.20.0200.00715.70
5.5.10.0210.00616.05
5.5.00.0190.00915.70
5.4.450.0490.03216.11
5.4.440.0510.03216.07
5.4.430.0520.03316.05
5.4.420.0390.00416.03
5.4.410.0430.00016.02
5.4.400.0410.00315.86
5.4.390.0390.00615.84
5.4.380.0410.00215.91
5.4.370.0410.00315.86
5.4.360.0370.00215.97
5.4.350.0380.00215.81
5.4.340.0080.02112.27
5.4.330.0150.00012.48
5.4.320.0100.02312.47
5.4.310.0050.02512.55
5.4.300.0060.02712.49
5.4.290.0070.02612.45
5.4.280.0070.02112.42
5.4.270.0080.02212.40
5.4.260.0080.02112.41
5.4.250.0070.02412.40
5.4.240.0100.02012.42
5.4.230.0070.02312.49
5.4.220.0100.01812.48
5.4.210.0020.03012.42
5.4.200.0090.02312.42
5.4.190.0070.02312.53
5.4.180.0140.02412.46
5.4.170.0140.02212.39
5.4.160.0080.02312.35
5.4.150.0140.01812.54
5.4.140.0130.02012.39
5.4.130.0110.02012.31
5.4.120.0080.02512.40
5.4.110.0100.02212.26
5.4.100.0120.01812.35
5.4.90.0110.02312.26
5.4.80.0110.02012.23
5.4.70.0120.01912.17
5.4.60.0110.01912.22
5.4.50.0120.02012.23
5.4.40.0080.02512.26
5.4.30.0090.02212.22
5.4.20.0080.02312.29
5.4.10.0080.02312.17
5.4.00.0100.02211.89
5.3.290.0070.02412.94
5.3.280.0070.02712.82
5.3.270.0130.02312.91
5.3.260.0090.02612.84
5.3.250.0120.02212.91
5.3.240.0100.02412.79
5.3.230.0110.02212.89
5.3.220.0120.02512.79
5.3.210.0110.02412.72
5.3.200.0120.02212.81
5.3.190.0090.02612.79
5.3.180.0100.02212.85
5.3.170.0100.02112.83
5.3.160.0080.02412.87
5.3.150.0130.02012.84
5.3.140.0140.01912.86
5.3.130.0110.02412.75
5.3.120.0070.03012.90
5.3.110.0120.02312.75
5.3.100.0110.02112.61
5.3.90.0090.02512.59
5.3.80.0130.01912.49
5.3.70.0070.02512.49
5.3.60.0120.02312.50
5.3.50.0120.02112.46
5.3.40.0090.02012.36
5.3.30.0080.02312.48
5.3.20.0110.02012.29
5.3.10.0100.01812.18
5.3.00.0090.02212.24
5.2.170.0080.02010.59
5.2.160.0090.01610.62
5.2.150.0070.02010.60
5.2.140.0030.02110.54
5.2.130.0070.02210.48
5.2.120.0090.01810.56
5.2.110.0020.02310.57
5.2.100.0070.01910.53
5.2.90.0040.02210.49
5.2.80.0110.01510.51
5.2.70.0100.01610.55
5.2.60.0080.01810.43
5.2.50.0070.01810.44
5.2.40.0080.01610.51
5.2.30.0070.01910.47
5.2.20.0050.02010.46
5.2.10.0070.01610.46
5.2.00.0100.01510.23
5.1.60.0040.0219.54
5.1.50.0090.0169.57
5.1.40.0110.0169.64
5.1.30.0120.0169.86
5.1.20.0040.0199.73
5.1.10.0090.0149.67
5.1.00.0090.0149.66
5.0.50.0070.0118.40
5.0.40.0080.0128.31
5.0.30.0070.0188.21
5.0.20.0100.0108.20
5.0.10.0060.0128.19
5.0.00.0080.0158.19
4.4.90.0040.0107.46
4.4.80.0020.0117.45
4.4.70.0030.0107.45
4.4.60.0030.0107.45
4.4.50.0020.0107.45
4.4.40.0030.0157.42
4.4.30.0040.0117.45
4.4.20.0010.0137.49
4.4.10.0060.0097.49
4.4.00.0070.0117.45
4.3.110.0070.0087.40
4.3.100.0060.0077.40
4.3.90.0030.0107.39
4.3.80.0050.0137.36
4.3.70.0060.0077.39
4.3.60.0040.0107.38
4.3.50.0050.0087.38
4.3.40.0060.0127.34
4.3.30.0020.0146.72
4.3.20.0040.0086.70
4.3.10.0040.0076.68
4.3.00.0100.0168.64

preferences:
41.33 ms | 400 KiB | 5 Q