3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); function gzdecode_filler( $data, $length = 0 ) { $fp = fopen( 'compress.zlib://data:appliaction/x-gzip;base64,' . base64_encode( $data ), 'r' ); $length = (int)$length; $max = 32768 * strlen( $data ); $max = $length ? min( $length, $max ) : $max; $decoded = fread( $fp, $max + 1 ); if ( $decoded === false || strlen( $decoded ) > $max ) { return false; } return $decoded; } var_dump(gzdecode_filler(pack('H*', "1f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c000000")));

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.0120.00918.81
8.3.30.0040.01118.88
8.3.20.0000.00818.87
8.3.10.0030.00622.79
8.3.00.0000.00821.54
8.2.170.0140.00022.96
8.2.160.0150.00018.78
8.2.150.0070.01124.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00418.89
8.2.110.0100.00023.25
8.2.100.0110.00017.97
8.2.90.0000.00819.47
8.2.80.0040.00417.97
8.2.70.0040.00418.03
8.2.60.0050.00318.16
8.2.50.0050.00318.10
8.2.40.0080.00019.38
8.2.30.0000.00719.33
8.2.20.0060.00421.23
8.2.10.0070.00017.88
8.2.00.0060.00317.73
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00324.54
8.1.230.0000.01120.97
8.1.220.0040.00417.78
8.1.210.0000.00818.95
8.1.200.0030.00517.35
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0040.00418.66
8.1.160.0040.00419.00
8.1.150.0000.00719.09
8.1.140.0030.00617.45
8.1.130.0070.00017.99
8.1.120.0050.00217.59
8.1.110.0000.00717.61
8.1.100.0000.00717.53
8.1.90.0050.00217.47
8.1.80.0040.00417.63
8.1.70.0000.00717.56
8.1.60.0030.00617.78
8.1.50.0000.00817.58
8.1.40.0090.00017.54
8.1.30.0050.00317.71
8.1.20.0030.00617.68
8.1.10.0030.00517.56
8.1.00.0000.00717.56
8.0.300.0060.00320.03
8.0.290.0070.00016.75
8.0.280.0030.00318.61
8.0.270.0070.00017.36
8.0.260.0030.00317.04
8.0.250.0050.00217.09
8.0.240.0030.00617.00
8.0.230.0000.00717.03
8.0.220.0050.00316.96
8.0.210.0050.00217.04
8.0.200.0040.00417.00
8.0.190.0040.00417.06
8.0.180.0080.00017.01
8.0.170.0030.00516.98
8.0.160.0030.00517.04
8.0.150.0040.00416.91
8.0.140.0050.00516.86
8.0.130.0030.00313.62
8.0.120.0040.00417.02
8.0.110.0040.00417.02
8.0.100.0000.00717.18
8.0.90.0070.00017.00
8.0.80.0150.00616.97
8.0.70.0050.00317.07
8.0.60.0000.00816.89
8.0.50.0000.00716.87
8.0.30.0100.01517.12
8.0.20.0120.00917.10
8.0.10.0050.00216.89
8.0.00.0090.01216.77
7.4.330.0020.00213.18
7.4.320.0070.00016.55
7.4.300.0060.00016.64
7.4.290.0000.00716.66
7.4.280.0070.00016.57
7.4.270.0000.00716.57
7.4.260.0000.00613.45
7.4.250.0060.00316.45
7.4.240.0040.00416.57
7.4.230.0000.00716.79
7.4.220.0140.01116.75
7.4.210.0030.01016.70
7.4.200.0030.00516.82
7.4.190.0000.00716.50
7.4.160.0040.01516.71
7.4.150.0140.00316.49
7.4.140.0130.01016.42
7.4.130.0080.01516.70
7.4.120.0140.00616.63
7.4.110.0250.01916.46
7.4.100.0030.01316.66
7.4.90.0130.01016.45
7.4.80.0160.00516.64
7.4.70.0070.01016.54
7.4.60.0100.00716.54
7.4.50.0030.00316.48
7.4.40.0070.01016.68
7.4.30.0030.01316.80
7.4.00.0080.00514.87
7.3.330.0060.00013.46
7.3.320.0000.00513.28
7.3.310.0000.00716.53
7.3.300.0070.00016.58
7.3.290.0050.00816.45
7.3.280.0090.00916.45
7.3.270.0160.00316.64
7.3.260.0140.00616.58
7.3.250.0130.00616.41
7.3.240.0120.01216.47
7.3.230.0100.01116.43
7.3.210.0120.00616.69
7.3.200.0100.00619.39
7.3.190.0070.01416.64
7.3.180.0110.00616.73
7.3.170.0040.01216.48
7.3.160.0150.00016.57
7.3.120.0120.00314.91
7.2.330.0070.01016.87
7.2.320.0030.01416.52
7.2.310.0090.00916.49
7.2.300.0150.00316.93
7.2.290.0110.00816.61
7.2.00.0000.01221.41
7.1.100.0000.00919.99
7.1.70.0000.00819.10
7.1.60.0030.02219.24
7.1.50.0040.01818.47
7.1.00.0030.07324.23
7.0.200.0350.00914.89
7.0.140.0000.07324.04
7.0.120.0000.07324.05
7.0.60.0230.07019.91
7.0.50.0130.08017.90
7.0.40.0130.07017.77
7.0.30.0030.04717.84
7.0.20.0100.07317.77
7.0.10.0070.05317.95
7.0.00.0070.07717.89
5.6.280.0100.06720.89
5.6.210.0030.07320.71
5.6.200.0100.07718.20
5.6.190.0130.05718.22
5.6.180.0030.08318.31
5.6.170.0100.06718.18
5.6.160.0070.07318.20
5.6.150.0070.07718.31
5.6.140.0100.08318.20
5.6.130.0070.05018.21
5.6.120.0030.05318.20
5.6.110.0130.08018.18
5.6.100.0030.05318.30
5.6.90.0130.08318.36
5.6.80.0070.03717.61
5.6.70.0130.07017.56
5.6.60.0130.07017.68
5.6.50.0030.08017.62
5.6.40.0170.06717.57
5.6.30.0100.08017.66
5.6.20.0000.04717.54
5.6.10.0070.03717.73
5.6.00.0000.04017.54
5.5.350.0100.08020.37
5.5.340.0100.08317.98
5.5.330.0070.06318.11
5.5.320.0100.07318.07
5.5.310.0030.06018.02
5.5.300.0070.07718.00
5.5.290.0130.08318.11
5.5.280.0170.03718.18
5.5.270.0070.07717.96
5.5.260.0030.05318.09
5.5.250.0000.06317.92
5.5.240.0070.07717.41
5.5.230.0000.05317.40
5.5.220.0100.06717.33
5.5.210.0030.07317.56
5.5.200.0130.03317.33
5.5.190.0200.06317.37
5.5.180.0130.06017.46
5.5.160.0030.04017.35
5.5.150.0130.04017.41
5.5.140.0000.04717.36
5.5.130.0000.04017.43
5.5.120.0030.03717.37
5.5.110.0000.04017.36
5.5.100.0030.03717.24
5.5.90.0030.03717.22
5.5.80.0030.04017.32
5.5.70.0030.03717.42
5.5.60.0030.03717.25
5.5.50.0030.03717.34
5.5.40.0030.04017.24
5.5.30.0000.04017.35
5.5.20.0070.03317.18
5.5.10.0030.03717.21
5.5.00.0000.04017.25
5.4.450.0100.06719.31
5.4.440.0070.08019.48
5.4.430.0100.06719.62
5.4.420.0130.06319.62
5.4.410.0100.07719.24
5.4.400.0070.07719.30
5.4.390.0200.06319.08
5.4.380.0100.03319.15
5.4.370.0170.07019.06
5.4.360.0130.07719.06
5.4.350.0100.07719.13
5.4.340.0070.03719.08
5.4.320.0030.04019.08
5.4.310.0000.04019.04
5.4.300.0030.03718.98
5.4.290.0070.03318.97
5.4.280.0000.04019.15
5.4.270.0030.03719.08
5.4.260.0000.04019.07
5.4.250.0030.03719.06
5.4.240.0030.03719.02
5.4.230.0030.03719.06
5.4.220.0070.03319.14
5.4.210.0000.04019.06
5.4.200.0030.03718.97
5.4.190.0070.03319.06
5.4.180.0030.03719.03
5.4.170.0000.04319.19
5.4.160.0100.03019.17
5.4.150.0030.04018.95
5.4.140.0030.03716.38
5.4.130.0030.03716.65
5.4.120.0030.04016.42
5.4.110.0030.03716.67
5.4.100.0030.03316.46
5.4.90.0000.03716.43
5.4.80.0030.03316.53
5.4.70.0000.04316.50
5.4.60.0030.03716.60
5.4.50.0130.06716.46
5.4.40.0070.07316.45
5.4.30.0070.06716.46
5.4.20.0030.06016.41
5.4.10.0100.04016.42
5.4.00.0100.07316.10
5.3.290.0030.04314.91
5.3.280.0000.04014.73
5.3.270.0000.04314.74
5.3.260.0030.03714.64
5.3.250.0030.03314.68
5.3.240.0070.03014.65
5.3.230.0000.04314.66
5.3.220.0000.04014.64
5.3.210.0000.04014.55
5.3.200.0130.02314.66
5.3.190.0000.04014.55
5.3.180.0030.03714.55
5.3.170.0000.03714.61
5.3.160.0030.05014.59
5.3.150.0100.04014.45
5.3.140.0000.05714.63
5.3.130.0130.07014.79
5.3.120.0100.05314.60
5.3.110.0030.04714.66
5.3.100.0070.07714.02
5.3.90.0100.05314.09
5.3.80.0030.07314.07
5.3.70.0100.07314.10
5.3.60.0100.05714.24
5.3.50.0070.05014.02
5.3.40.0030.07013.88
5.3.30.0070.07314.00
5.3.20.0100.07313.82
5.3.10.0100.07313.70
5.3.00.0070.05313.70
5.2.170.0030.04011.14
5.2.160.0100.06011.20
5.2.150.0070.04011.28
5.2.140.0100.06011.14
5.2.130.0070.06011.23
5.2.120.0070.06011.16
5.2.110.0030.05311.13
5.2.100.0070.05711.17
5.2.90.0000.05311.18
5.2.80.0000.04011.16
5.2.70.0070.03311.21
5.2.60.0030.06311.08
5.2.50.0130.05011.02
5.2.40.0030.04011.09
5.2.30.0030.06010.96
5.2.20.0030.06011.03
5.2.10.0100.04010.86
5.2.00.0030.05710.96
5.1.60.0000.05010.04
5.1.50.0030.0539.98
5.1.40.0100.0439.98
5.1.30.0030.04010.40
5.1.20.0030.06010.26
5.1.10.0000.03310.11
5.1.00.0100.05010.12
5.0.50.0030.0438.54
5.0.40.0030.0408.34
5.0.30.0000.0478.14
5.0.20.0030.0178.17
5.0.10.0070.0338.11
5.0.00.0000.0408.22
4.4.90.0030.0237.63
4.4.80.0030.0307.63
4.4.70.0000.0377.63
4.4.60.0000.0207.63
4.4.50.0000.0277.63
4.4.40.0030.0537.63
4.4.30.0070.0277.63
4.4.20.0070.0177.63
4.4.10.0030.0337.63
4.4.00.0000.0507.63
4.3.110.0000.0337.63
4.3.100.0000.0307.63
4.3.90.0070.0277.63
4.3.80.0030.0237.63
4.3.70.0070.0207.63
4.3.60.0070.0307.63
4.3.50.0130.0277.63
4.3.40.0000.0577.63
4.3.30.0000.0377.63
4.3.20.0070.0277.63
4.3.10.0000.0307.63
4.3.00.0000.0377.63

preferences:
36.58 ms | 400 KiB | 5 Q