3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __int32($numeric_value){ $x = (float)$numeric_value; $y = pow(2,32); if ($x > $y) { $x = pow(2,31)-1; } elseif ($x >= pow(2,31)) { $x -= $y; } return (int)$x; } function crc32int($string) { return __int32(hexdec(hash("crc32b", $string))); } crc32int('http://evil.com');

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.0070.01418.36
8.3.50.0150.00322.05
8.3.40.0040.01118.71
8.3.30.0070.00718.75
8.3.20.0000.01020.22
8.3.10.0040.00421.92
8.3.00.0080.00022.39
8.2.180.0120.00616.75
8.2.170.0130.00722.96
8.2.160.0110.00420.61
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0120.00826.16
8.2.120.0060.00317.50
8.2.110.0090.00022.11
8.2.100.0040.00819.26
8.2.90.0060.00318.99
8.2.80.0050.00318.05
8.2.70.0080.00017.50
8.2.60.0040.00418.04
8.2.50.0050.00318.07
8.2.40.0050.00318.02
8.2.30.0000.00718.02
8.2.20.0080.00017.61
8.2.10.0040.00417.67
8.2.00.0060.00317.50
8.1.280.0090.00625.92
8.1.270.0050.00322.24
8.1.260.0150.00026.35
8.1.250.0070.01128.09
8.1.240.0030.00623.96
8.1.230.0040.00719.06
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0100.00517.23
8.1.190.0080.00017.43
8.1.180.0030.00518.64
8.1.170.0040.00418.72
8.1.160.0070.00022.01
8.1.150.0040.00418.65
8.1.140.0070.00017.46
8.1.130.0030.00517.79
8.1.120.0000.00817.46
8.1.110.0050.00317.33
8.1.100.0050.00217.52
8.1.90.0050.00217.36
8.1.80.0000.00717.45
8.1.70.0040.00417.53
8.1.60.0030.00517.60
8.1.50.0000.00817.55
8.1.40.0040.00417.60
8.1.30.0050.00317.71
8.1.20.0080.00017.66
8.1.10.0060.00317.51
8.1.00.0000.00717.34
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0030.00518.27
8.0.270.0000.00717.18
8.0.260.0000.00716.83
8.0.250.0000.00716.87
8.0.240.0040.00316.99
8.0.230.0000.00716.94
8.0.220.0070.00016.89
8.0.210.0030.00316.91
8.0.200.0070.00016.91
8.0.190.0060.00316.82
8.0.180.0030.00316.88
8.0.170.0050.00216.82
8.0.160.0000.00816.78
8.0.150.0000.00716.89
8.0.140.0050.00316.88
8.0.130.0060.00313.34
8.0.120.0050.00316.85
8.0.110.0070.00016.96
8.0.100.0050.00216.91
8.0.90.0070.00016.87
8.0.80.0030.01316.86
8.0.70.0050.00216.89
8.0.60.0050.00316.89
8.0.50.0000.00716.93
8.0.30.0140.01017.16
8.0.20.0090.00917.40
8.0.10.0060.00316.81
8.0.00.0090.00916.82
7.4.330.0020.00215.09
7.4.320.0040.00416.58
7.4.300.0000.00616.52
7.4.290.0040.00416.64
7.4.280.0030.00316.66
7.4.270.0000.00716.59
7.4.260.0080.00016.53
7.4.250.0000.00816.61
7.4.240.0020.00516.66
7.4.230.0030.00316.64
7.4.220.0060.01616.53
7.4.210.0090.00516.61
7.4.200.0040.00416.31
7.4.190.0070.00016.52
7.4.160.0100.00716.57
7.4.150.0110.00717.40
7.4.140.0100.00817.86
7.4.130.0110.00516.36
7.4.120.0100.00916.54
7.4.110.0130.00916.57
7.4.100.0090.00916.56
7.4.90.0100.00716.58
7.4.80.0120.00919.39
7.4.70.0000.01816.46
7.4.60.0180.00416.52
7.4.50.0040.00416.66
7.4.40.0100.00722.77
7.4.30.0060.00916.65
7.4.00.0120.00314.98
7.3.330.0060.00013.25
7.3.320.0000.00513.24
7.3.310.0030.00316.25
7.3.300.0000.00716.21
7.3.290.0060.01316.29
7.3.280.0070.00716.28
7.3.270.0100.00617.40
7.3.260.0100.02616.34
7.3.250.0130.00716.36
7.3.240.0130.00316.37
7.3.230.0060.01216.40
7.3.210.0070.01016.45
7.3.200.0180.00419.39
7.3.190.0060.01116.42
7.3.180.0130.00316.33
7.3.170.0110.00716.27
7.3.160.0090.00616.68
7.3.120.0100.00714.90
7.2.330.0140.00416.70
7.2.320.0110.00716.66
7.2.310.0100.00716.72
7.2.300.0100.00716.79
7.2.290.0120.00916.49
7.2.00.0210.00018.57
7.1.100.0000.01218.28
7.1.70.0000.00717.38
7.1.60.0120.00619.82
7.1.50.0070.01017.11
7.1.00.0070.07322.51
7.0.200.0060.00316.82
7.0.140.0000.07722.13
7.0.60.0030.04320.04
7.0.50.0000.04317.88
7.0.40.0170.03720.23
7.0.30.0270.06320.16
7.0.20.0230.05720.06
7.0.10.0200.06320.30
7.0.00.0100.04320.23
5.6.280.0030.07020.93
5.6.210.0130.04720.51
5.6.200.0070.06318.14
5.6.190.0030.09320.57
5.6.180.0100.06320.46
5.6.170.0270.06020.54
5.6.160.0170.04020.43
5.6.150.0070.04018.28
5.6.140.0030.06018.11
5.6.130.0070.08718.17
5.6.120.0130.07321.00
5.6.110.0100.03321.02
5.6.100.0070.05720.99
5.6.90.0030.05321.11
5.6.80.0030.04320.54
5.6.70.0130.03320.45
5.5.350.0000.08720.50
5.5.340.0000.06718.04
5.5.330.0100.08020.47
5.5.320.0330.05720.28
5.5.310.0270.07720.36
5.5.300.0030.04017.95
5.5.290.0030.08318.08
5.5.280.0130.08320.66
5.5.270.0070.03720.80
5.5.260.0070.07720.89
5.5.250.0070.05320.79
5.5.240.0170.03020.07
5.4.450.0600.04719.48
5.4.440.0500.06019.70
5.4.430.0130.05019.52
5.4.420.0070.05719.21
5.4.410.0070.05719.30
5.4.400.1400.00018.67
5.4.390.1830.00018.70
5.4.380.0200.05718.80
5.4.370.0400.05018.78
5.4.360.0530.04718.70
5.4.350.0400.04018.50
5.4.340.0230.05718.75
5.4.320.0070.05012.51
5.4.310.0040.04112.50
5.4.300.0080.03812.51
5.4.290.0050.03912.51
5.4.280.0080.03412.40
5.4.270.0040.03712.40
5.4.260.0100.05019.00
5.4.250.0130.05319.02
5.4.240.0030.08718.81
5.4.230.0100.06018.96
5.4.220.0170.07018.95
5.4.210.0170.04718.90
5.4.200.0130.04718.76
5.4.190.0100.05018.66
5.4.180.0170.04018.74
5.4.170.0130.04718.99
5.4.160.0100.05318.76
5.4.150.0100.05718.96
5.4.140.0100.04716.45
5.4.130.0070.04716.47
5.4.120.0100.04716.47
5.4.110.0130.04716.67
5.4.100.0100.05016.71
5.4.90.0130.05716.38
5.4.80.0100.05716.53
5.4.70.0070.05316.59
5.4.60.0070.06016.39
5.4.50.0100.04716.38
5.4.40.0130.05316.43
5.4.30.0100.04716.35
5.4.20.0030.06016.46
5.4.10.0200.04716.30
5.4.00.0100.04715.85
5.3.290.0080.04212.80
5.3.280.0100.06014.50
5.3.270.0070.05314.64
5.3.260.0100.05314.68
5.3.250.0130.04714.59
5.3.240.0070.07714.83
5.3.230.0070.05314.50
5.3.220.0030.05714.65
5.3.210.0070.05714.75
5.3.200.0170.04314.63
5.3.190.0130.05314.66
5.3.180.0100.05714.58
5.3.170.0070.05314.39
5.3.160.0170.05014.65
5.3.150.0230.06314.47
5.3.140.0130.05014.46
5.3.130.0170.04314.54
5.3.120.0170.04714.38
5.3.110.0170.07014.71
5.3.100.0170.04714.02
5.3.90.0070.05714.02
5.3.80.0130.04313.93
5.3.70.0070.06314.00
5.3.60.0070.05314.18
5.3.50.0070.05313.96
5.3.40.0030.05714.01
5.3.30.0170.06013.92
5.3.20.0130.06313.78
5.3.10.0100.06013.62
5.3.00.0100.06713.73
5.2.170.0070.04311.21
5.2.160.0070.04311.20
5.2.150.0000.04711.23
5.2.140.0130.05311.21
5.2.130.0070.04311.08
5.2.120.0000.04711.18
5.2.110.0130.03311.32
5.2.100.0100.03311.27
5.2.90.0100.03711.08
5.2.80.0030.04711.04
5.2.70.0070.04011.07
5.2.60.0170.03011.22
5.2.50.0170.05011.00
5.2.40.0030.05011.08
5.2.30.0030.04711.05
5.2.20.0170.04011.12
5.2.10.0070.05010.93
5.2.00.0070.04010.79
5.1.60.0030.03710.16
5.1.50.0070.03710.15
5.1.40.0130.03710.04
5.1.30.0070.03310.42
5.1.20.0070.03710.52
5.1.10.0100.03010.14
5.1.00.0170.03010.27
5.0.50.0030.0378.60
5.0.40.0030.0308.60
5.0.30.0030.0478.60
5.0.20.0000.0308.60
5.0.10.0030.0308.60
5.0.00.0030.0538.60
4.4.90.0030.0308.60
4.4.80.0000.0278.60
4.4.70.0070.0178.60
4.4.60.0000.0308.60
4.4.50.0070.0208.60
4.4.40.0000.0408.60
4.4.30.0000.0238.60
4.4.20.0000.0238.60
4.4.10.0100.0238.60
4.4.00.0100.0408.60
4.3.110.0030.0338.60
4.3.100.0030.0238.60
4.3.90.0070.0178.60
4.3.80.0030.0338.60
4.3.70.0030.0208.60
4.3.60.0100.0208.60
4.3.50.0070.0278.60
4.3.40.0030.0638.60
4.3.30.0030.0278.60
4.3.20.0030.0208.60
4.3.10.0070.0178.60
4.3.00.0130.0207.24

preferences:
42.26 ms | 401 KiB | 5 Q