3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gzdecode_filler( $data, $length = 0 ) { $fp = fopen( 'php://memory', 'r+' ); fwrite( $fp, $data ); fseek( $fp, 0 ); stream_filter_append( $fp, 'zlib.inflate', STREAM_FILTER_READ ); $length = (int)$length; $max = 32768 * strlen( $data ); $max = $length ? min( $length, $max ) : $max; $decoded = fread( $data, $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.70.0060.01016.61
8.3.60.0160.00618.40
8.3.50.0130.00921.08
8.3.40.0140.00418.88
8.3.30.0100.00318.76
8.3.20.0040.00418.75
8.3.10.0050.00321.09
8.3.00.0040.00421.80
8.2.180.0070.00716.50
8.2.170.0120.00622.96
8.2.160.0110.00420.35
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00021.00
8.2.110.0000.00920.38
8.2.100.0120.00017.72
8.2.90.0030.00519.07
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0000.00818.24
8.2.30.0060.00321.07
8.2.20.0050.00217.66
8.2.10.0000.00817.70
8.2.00.0000.00817.83
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0060.01226.35
8.1.250.0080.00028.09
8.1.240.0060.00322.53
8.1.230.0030.00720.91
8.1.220.0030.00618.77
8.1.210.0000.00918.87
8.1.200.0060.00317.22
8.1.190.0030.00517.53
8.1.180.0080.00018.10
8.1.170.0000.00818.46
8.1.160.0040.00418.85
8.1.150.0000.00718.61
8.1.140.0030.00617.42
8.1.130.0030.00517.86
8.1.120.0040.00417.42
8.1.110.0040.00417.43
8.1.100.0040.00417.34
8.1.90.0030.00517.45
8.1.80.0050.00217.44
8.1.70.0000.00717.41
8.1.60.0000.00817.51
8.1.50.0040.00417.38
8.1.40.0080.00017.46
8.1.30.0060.00317.66
8.1.20.0000.00817.72
8.1.10.0000.00817.56
8.1.00.0040.00417.39
8.0.300.0040.00420.11
8.0.290.0030.00517.30
8.0.280.0000.00718.52
8.0.270.0000.00717.26
8.0.260.0030.00316.98
8.0.250.0030.00517.00
8.0.240.0050.00316.98
8.0.230.0000.00816.89
8.0.220.0030.00316.96
8.0.210.0080.00016.98
8.0.200.0000.00617.06
8.0.190.0030.00317.04
8.0.180.0000.00717.03
8.0.170.0040.00417.01
8.0.160.0000.00716.88
8.0.150.0030.00417.00
8.0.140.0040.00416.82
8.0.130.0000.00613.34
8.0.120.0040.00416.94
8.0.110.0000.00716.78
8.0.100.0020.00516.77
8.0.90.0000.00816.86
8.0.80.0030.01217.00
8.0.70.0040.00416.87
8.0.60.0040.00416.81
8.0.50.0000.00716.77
8.0.30.0150.00517.37
8.0.20.0110.00817.40
8.0.10.0070.00016.89
8.0.00.0090.01116.88
7.4.330.0060.00014.66
7.4.320.0060.00016.60
7.4.300.0030.00316.63
7.4.290.0030.00316.61
7.4.280.0040.00416.61
7.4.270.0070.00016.48
7.4.260.0060.00013.41
7.4.250.0050.00316.37
7.4.240.0040.00416.48
7.4.230.0000.00816.63
7.4.220.0110.01116.59
7.4.210.0040.01316.61
7.4.200.0070.00016.56
7.4.190.0030.00616.67
7.4.160.0030.01216.42
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0110.00616.56
7.4.120.0110.00916.58
7.4.110.0100.01416.67
7.4.100.0150.00616.57
7.4.90.0030.01416.55
7.4.80.0150.00319.39
7.4.70.0080.00916.46
7.4.60.0030.01316.53
7.4.50.0000.00516.16
7.4.40.0090.00622.77
7.4.30.0110.00516.49
7.4.00.0110.00715.06
7.3.330.0000.00513.48
7.3.320.0030.00313.35
7.3.310.0030.00316.32
7.3.300.0000.00616.40
7.3.290.0060.00916.51
7.3.280.0110.00916.47
7.3.270.0090.00917.40
7.3.260.0070.01318.24
7.3.250.0100.01016.57
7.3.240.0130.00316.57
7.3.230.0100.00716.43
7.3.210.0060.01316.64
7.3.200.0120.01219.39
7.3.190.0070.01016.72
7.3.180.0080.00816.47
7.3.170.0090.01416.46
7.3.160.0080.00816.47
7.3.120.0080.00814.95
7.3.110.0100.00615.03
7.3.100.0070.00814.93
7.3.90.0070.00514.83
7.3.80.0050.00814.93
7.3.70.0040.01014.80
7.3.60.0040.01014.86
7.3.50.0080.00614.83
7.3.40.0060.00614.84
7.3.30.0060.00314.84
7.3.20.0060.00516.59
7.3.10.0040.01016.75
7.3.00.0060.00716.66
7.2.330.0080.00816.86
7.2.320.0060.01616.83
7.2.310.0090.01516.59
7.2.300.0150.00416.75
7.2.290.0070.01316.62
7.2.250.0110.00814.94
7.2.240.0070.01115.04
7.2.230.0080.00815.05
7.2.220.0050.01214.98
7.2.210.0050.00915.00
7.2.200.0070.00815.00
7.2.190.0020.01115.08
7.2.180.0040.01015.13
7.2.170.0080.00814.92
7.2.160.0090.00715.08
7.2.150.0060.00716.91
7.2.140.0070.00716.92
7.2.130.0080.00516.97
7.2.120.0060.00716.80
7.2.110.0020.01316.72
7.2.100.0050.01016.80
7.2.90.0060.00617.03
7.2.80.0030.01116.93
7.2.70.0080.00717.06
7.2.60.0080.00616.84
7.2.50.0030.01116.91
7.2.40.0080.00817.02
7.2.30.0020.01217.00
7.2.20.0080.00416.98
7.2.10.0040.01016.98
7.2.00.0050.00816.82
7.1.330.0070.00615.81
7.1.320.0050.00515.95
7.1.310.0070.00616.02
7.1.300.0070.00615.88
7.1.290.0070.00715.76
7.1.280.0070.00715.77
7.1.270.0020.01015.65
7.1.260.0060.00915.73
7.1.250.0030.00915.78
7.1.240.0040.00715.90
7.1.230.0030.00615.50
7.1.220.0060.00615.60
7.1.210.0070.00715.94
7.1.200.0110.00015.75
7.1.190.0030.01016.00
7.1.180.0040.00415.91
7.1.170.0030.00915.73
7.1.160.0000.01315.79
7.1.150.0090.00615.90
7.1.140.0080.00015.79
7.1.130.0000.01315.80
7.1.120.0090.00615.52
7.1.110.0030.01415.82
7.1.100.0030.00615.58
7.1.90.0040.00716.04
7.1.80.0070.00415.79
7.1.70.0020.00616.67
7.1.60.0080.01117.60
7.1.50.0110.00816.39
7.1.40.0030.01015.86
7.1.30.0060.00615.81
7.1.20.0030.00915.95
7.1.10.0080.00015.91
7.1.00.0020.02819.21
7.0.330.0080.00015.34
7.0.320.0100.00015.43
7.0.310.0050.00915.51
7.0.300.0040.00815.44
7.0.290.0000.01215.34
7.0.280.0050.00315.53
7.0.270.0060.00915.50
7.0.260.0030.01215.46
7.0.250.0040.00715.67
7.0.240.0030.01015.36
7.0.230.0040.00415.55
7.0.220.0070.01015.42
7.0.210.0060.00315.41
7.0.200.0050.00816.14
7.0.190.0060.01015.28
7.0.180.0070.00315.50
7.0.170.0000.01215.47
7.0.160.0050.00315.57
7.0.150.0100.00315.41
7.0.140.0050.04018.85
7.0.130.0040.01115.37
7.0.120.0000.01315.54
7.0.110.0030.00615.51
7.0.100.0040.00715.55
7.0.90.0080.04417.84
7.0.80.0330.04517.63
7.0.70.0050.02317.55
7.0.60.0100.03517.59
7.0.50.0300.04017.92
7.0.40.0080.04516.82
7.0.30.0120.04016.95
7.0.20.0030.04716.69
7.0.10.0090.03216.84
7.0.00.0020.03116.86
5.6.400.0060.00614.32
5.6.390.0030.00714.30
5.6.380.0030.00914.41
5.6.370.0040.01114.43
5.6.360.0090.00314.27
5.6.350.0070.01014.52
5.6.340.0030.01214.31
5.6.330.0070.00714.55
5.6.320.0030.01414.43
5.6.310.0070.00714.38
5.6.300.0030.00514.44
5.6.290.0040.00414.23
5.6.280.0050.03717.72
5.6.270.0060.00614.13
5.6.260.0090.00014.15
5.6.250.0030.00714.29
5.6.240.0060.00614.29
5.6.230.0080.04817.54
5.6.220.0110.03617.44
5.6.210.0030.03317.46
5.6.200.0120.04217.64
5.6.190.0070.03017.66
5.6.180.0100.02517.82
5.6.170.0130.02017.68
5.6.160.0050.03317.63
5.6.150.0070.02517.70
5.6.140.0060.03417.71
5.6.130.0070.04617.76
5.6.120.0050.03117.78
5.6.110.0030.04517.71
5.6.100.0050.02617.60
5.6.90.0120.02317.73
5.6.80.0080.03017.32
5.6.70.0090.04217.36
5.6.60.0050.03017.31
5.6.50.0030.04917.32
5.6.40.0050.04517.07
5.6.30.0070.03517.34
5.6.20.0070.02217.38
5.6.10.0010.04317.32
5.6.00.0080.03817.30
5.5.380.0070.00314.07
5.5.370.0030.04317.38
5.5.360.0100.04117.26
5.5.350.0100.04317.30
5.5.340.0070.04017.58
5.5.330.0070.04717.49
5.5.320.0050.03417.42
5.5.310.0100.04017.44
5.5.300.0010.02917.44
5.5.290.0140.03717.68
5.5.280.0060.02817.54
5.5.270.0050.04617.54
5.5.260.0130.02917.61
5.5.250.0100.03317.40
5.5.240.0090.03917.07
5.5.230.0050.04617.29
5.5.220.0120.03017.09
5.5.210.0030.02517.26
5.5.200.0040.03416.98
5.5.190.0040.04917.20
5.5.180.0050.03317.25
5.5.170.0030.01414.21
5.5.160.0060.03317.21
5.5.150.0070.03216.98
5.5.140.0070.04217.15
5.5.130.0090.04317.09
5.5.120.0050.04517.07
5.5.110.0090.04016.98
5.5.100.0070.04417.04
5.5.90.0080.04117.13
5.5.80.0070.02817.13
5.5.70.0020.04617.11
5.5.60.0110.03617.17
5.5.50.0050.02316.94
5.5.40.0090.04417.05
5.5.30.0050.04116.99
5.5.20.0050.04317.15
5.5.10.0080.04317.13
5.5.00.0080.03217.05
5.4.450.0040.02515.38
5.4.440.0070.04215.47
5.4.430.0030.04615.33
5.4.420.0150.03315.29
5.4.410.0060.04015.31
5.4.400.0080.03215.33
5.4.390.0030.04415.21
5.4.380.0050.02515.17
5.4.370.0050.03415.26
5.4.360.0030.03015.26
5.4.350.0070.04315.12
5.4.340.0060.02815.14
5.4.330.0030.00911.39
5.4.320.0060.04115.31
5.4.310.0110.03815.24
5.4.300.0030.04115.19
5.4.290.0020.04215.26
5.4.280.0050.04315.16
5.4.270.0050.03815.13
5.4.260.0050.04215.21
5.4.250.0040.04115.30
5.4.240.0080.02215.25
5.4.230.0060.02315.25
5.4.220.0050.04315.31
5.4.210.0070.02315.27
5.4.200.0050.03315.20
5.4.190.0050.03515.20
5.4.180.0030.04315.25
5.4.170.0060.04115.21
5.4.160.0030.02515.20
5.4.150.0130.03515.25
5.4.140.0020.03413.90
5.4.130.0070.03013.91
5.4.120.0050.02213.94
5.4.110.0040.04113.93
5.4.100.0000.04113.91
5.4.90.0050.04013.89
5.4.80.0080.03313.90
5.4.70.0080.03813.93
5.4.60.0100.03513.93
5.4.50.0020.03713.92
5.4.40.0100.02613.96
5.4.30.0080.03713.89
5.4.20.0070.02013.91
5.4.10.0030.04313.89
5.4.00.0060.03313.62
5.3.290.0070.03013.04
5.3.280.0080.03812.99
5.3.270.0080.03313.01
5.3.260.0100.03513.01
5.3.250.0000.02613.01
5.3.240.0100.03713.01
5.3.230.0080.03813.02
5.3.220.0020.04213.05
5.3.210.0030.04312.95
5.3.200.0120.03712.98
5.3.190.0080.02313.05
5.3.180.0030.02313.04
5.3.170.0060.04312.98
5.3.160.0110.03312.95
5.3.150.0030.03813.01
5.3.140.0050.04212.96
5.3.130.0070.04113.04
5.3.120.0050.03113.03
5.3.110.0120.03712.94
5.3.100.0070.03812.69
5.3.90.0080.03712.75
5.3.80.0070.04512.73
5.3.70.0040.03912.71
5.3.60.0030.04212.65
5.3.50.0040.02412.72
5.3.40.0050.03812.63
5.3.30.0030.03312.64
5.3.20.0080.03612.54
5.3.10.0080.03412.47
5.3.00.0040.03912.48
5.2.170.0030.03313.55
5.2.160.0030.06013.55
5.2.150.0070.06313.55
5.2.140.0000.07013.55
5.2.130.0030.06713.55
5.2.120.0000.05713.55
5.2.110.0070.05013.55
5.2.100.0030.06313.55
5.2.90.0030.06313.55
5.2.80.0030.06713.55
5.2.70.0030.03313.55
5.2.60.0070.05313.55
5.2.50.0000.06013.55
5.2.40.0070.04013.55
5.2.30.0100.05013.55
5.2.20.0070.05713.55
5.2.10.0030.04013.55
5.2.00.0000.06013.55
5.1.60.0000.05713.55
5.1.50.0000.04013.55
5.1.40.0000.04713.55
5.1.30.0070.05313.55
5.1.20.0170.04713.55
5.1.10.0070.05013.55
5.1.00.0070.04013.55
5.0.50.0000.04313.55
5.0.40.0100.02313.55
5.0.30.0070.06013.55
5.0.20.0000.04013.55
5.0.10.0000.04313.55
5.0.00.0000.06313.55
4.4.90.0000.03713.55
4.4.80.0070.03013.55
4.4.70.0000.03013.55
4.4.60.0000.02313.55
4.4.50.0030.01713.55
4.4.40.0030.04713.55
4.4.30.0030.03713.55
4.4.20.0070.03013.55
4.4.10.0070.03013.55
4.4.00.0100.04713.55
4.3.110.0070.02713.55
4.3.100.0030.02713.55
4.3.90.0000.03713.55
4.3.80.0000.04013.55
4.3.70.0030.02013.55
4.3.60.0000.04013.55
4.3.50.0070.03013.55
4.3.40.0000.05313.55
4.3.30.0070.01713.55
4.3.20.0000.04013.55
4.3.10.0000.03313.55
4.3.00.0030.03013.55

preferences:
47.53 ms | 401 KiB | 5 Q