3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); function gzdecode_filler( $data, $length = 0 ) { $fp = fopen( 'php://memory', 'r+' ); fwrite( $fp, $data ); fseek( $fp, 0 ); var_dump( stream_get_contents( $fp ) ); 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( $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.60.0100.01020.73
8.3.50.0140.00522.93
8.3.40.0150.00318.80
8.3.30.0120.00419.17
8.3.20.0020.00520.25
8.3.10.0080.00624.26
8.3.00.0030.00624.46
8.2.180.0150.00320.39
8.2.170.0110.00422.96
8.2.160.0090.01222.98
8.2.150.0040.00424.18
8.2.140.0000.01924.66
8.2.130.0040.00426.16
8.2.120.0050.00321.46
8.2.110.0090.00020.46
8.2.100.0000.01317.91
8.2.90.0110.00017.88
8.2.80.0050.00318.64
8.2.70.0030.00617.63
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0000.00718.22
8.2.30.0050.00218.20
8.2.20.0000.00717.64
8.2.10.0080.00019.33
8.2.00.0030.00617.86
8.1.280.0140.00725.92
8.1.270.0040.00426.05
8.1.260.0050.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00021.03
8.1.230.0040.00820.86
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0050.00317.00
8.1.180.0030.00618.10
8.1.170.0060.00318.66
8.1.160.0030.00522.17
8.1.150.0040.00418.67
8.1.140.0050.00517.43
8.1.130.0030.00317.93
8.1.120.0080.00017.58
8.1.110.0070.00017.45
8.1.100.0000.00717.56
8.1.90.0040.00417.56
8.1.80.0050.00217.60
8.1.70.0000.00717.45
8.1.60.0060.00317.68
8.1.50.0080.00017.58
8.1.40.0050.00217.61
8.1.30.0000.00817.71
8.1.20.0090.00017.72
8.1.10.0000.00717.47
8.1.00.0040.00417.44
8.0.300.0070.00020.10
8.0.290.0070.00016.75
8.0.280.0030.00318.42
8.0.270.0070.00017.24
8.0.260.0030.00516.84
8.0.250.0070.00017.11
8.0.240.0050.00317.10
8.0.230.0000.00817.03
8.0.220.0040.00417.09
8.0.210.0030.00316.96
8.0.200.0000.00617.09
8.0.190.0000.00817.15
8.0.180.0080.00017.12
8.0.170.0030.00517.09
8.0.160.0000.00716.98
8.0.150.0040.00417.10
8.0.140.0000.00717.00
8.0.130.0060.00013.49
8.0.120.0030.00717.04
8.0.110.0000.00817.09
8.0.100.0040.00417.08
8.0.90.0040.00417.10
8.0.80.0070.01017.05
8.0.70.0080.00016.84
8.0.60.0070.00017.01
8.0.50.0040.00416.93
8.0.30.0090.01217.19
8.0.20.0160.00317.40
8.0.10.0000.00717.13
8.0.00.0080.01416.84
7.4.330.0050.00017.09
7.4.320.0060.00016.56
7.4.300.0020.00516.57
7.4.290.0000.00816.52
7.4.280.0030.00316.64
7.4.270.0030.00516.62
7.4.260.0020.00516.61
7.4.250.0040.00416.54
7.4.240.0050.00216.55
7.4.230.0000.00716.39
7.4.220.0090.01516.64
7.4.210.0090.00716.65
7.4.200.0000.00716.48
7.4.190.0000.00716.68
7.4.160.0060.01016.57
7.4.150.0090.00917.40
7.4.140.0140.00917.86
7.4.130.0060.01216.61
7.4.120.0080.01016.63
7.4.110.0170.00016.38
7.4.100.0060.01216.74
7.4.90.0130.00716.67
7.4.80.0060.01116.59
7.4.70.0120.00616.35
7.4.60.0030.01416.43
7.4.50.0030.00616.42
7.4.40.0070.00722.77
7.4.30.0110.00616.63
7.4.00.0070.01015.13
7.3.330.0030.00313.33
7.3.320.0050.00013.47
7.3.310.0000.00816.36
7.3.300.0070.00016.47
7.3.290.0060.00916.44
7.3.280.0100.00816.45
7.3.270.0070.01017.40
7.3.260.0130.00316.51
7.3.250.0060.01216.46
7.3.240.0120.00916.45
7.3.230.0140.01016.63
7.3.210.0060.01116.34
7.3.200.0060.01519.39
7.3.190.0090.01316.63
7.3.180.0100.00616.46
7.3.170.0140.00716.55
7.3.160.0130.00316.38
7.3.120.0070.01114.93
7.3.110.0150.00414.69
7.3.100.0030.01014.70
7.3.90.0080.00415.09
7.3.80.0000.01414.63
7.3.70.0110.00614.84
7.3.60.0090.00614.81
7.3.50.0070.00714.86
7.3.40.0030.01215.06
7.3.30.0030.01714.94
7.3.20.0100.01018.68
7.3.10.0030.00718.73
7.3.00.0030.01018.57
7.2.330.0130.00316.69
7.2.320.0030.01616.50
7.2.310.0070.01516.68
7.2.300.0060.01016.73
7.2.290.0000.01616.63
7.2.250.0060.00915.11
7.2.240.0070.01414.71
7.2.230.0130.00315.18
7.2.220.0040.01115.16
7.2.210.0070.00714.95
7.2.200.0090.00915.26
7.2.190.0060.00914.95
7.2.180.0030.00914.95
7.2.170.0100.00315.15
7.2.00.0030.01021.22
7.1.330.0080.00817.96
7.1.320.0070.00717.78
7.1.310.0070.01017.79
7.1.300.0040.01217.77
7.1.290.0120.00317.84
7.1.280.0070.00717.78
7.1.270.0000.01517.75
7.1.260.0070.00717.66
7.1.100.0100.00320.01
7.1.70.0030.00619.05
7.1.60.0090.01219.82
7.1.50.0000.02118.84
7.1.00.0070.07324.27
7.0.200.0140.00418.67
7.0.140.0100.07023.95
7.0.60.0070.08719.98
7.0.50.0030.08317.96
7.0.40.0100.07319.97
7.0.30.0300.05720.14
7.0.20.0230.05320.17
7.0.10.0230.05320.10
7.0.00.0030.05320.26
5.6.280.0000.07721.19
5.6.210.0070.04320.71
5.6.200.0100.08018.27
5.6.190.0000.04720.57
5.6.180.4170.04720.57
5.6.170.0230.05020.58
5.6.160.0000.08720.41
5.6.150.0030.04018.20
5.6.140.0100.07718.30
5.6.130.0100.08718.19
5.6.120.0130.05321.19
5.6.110.0170.07021.02
5.6.100.0100.08321.17
5.6.90.0100.08021.11
5.6.80.0030.04320.43
5.6.70.0070.07320.32
5.5.350.0070.04720.36
5.5.340.0070.06718.07
5.5.330.0230.06720.48
5.5.320.0400.06720.34
5.5.310.0400.07720.21
5.5.300.0130.05717.98
5.5.290.0100.04717.96
5.5.280.0100.07320.81
5.5.270.0170.06720.91
5.5.260.0000.05721.00
5.5.250.0130.06320.62
5.5.240.0100.07320.19
5.4.450.0270.05019.57
5.4.440.0100.05319.65
5.4.430.0700.05019.47
5.4.420.0730.04719.50
5.4.410.0070.05719.03
5.4.400.0030.06018.57
5.4.390.0130.05018.78
5.4.380.0200.05318.79
5.4.370.0030.06018.61
5.4.360.0130.05018.86
5.4.350.0170.04718.83
5.4.340.0130.05018.56
5.4.320.0070.03712.53
5.4.310.0050.04112.53
5.4.300.0090.04212.53
5.4.290.0070.04712.53
5.4.280.0080.04912.42
5.4.270.0060.04112.43
5.4.260.0060.04012.42
5.4.250.0070.03912.42
5.4.240.0060.04512.42
5.4.230.0060.03912.42
5.4.220.0050.03812.42
5.4.210.0030.03912.41
5.4.200.0080.03612.41
5.4.190.0160.04412.40
5.4.180.0150.04312.40
5.4.170.0170.04012.41
5.4.160.0190.04212.41
5.4.150.0150.04612.40
5.4.140.0120.04712.09
5.4.130.0230.06712.08
5.4.120.0170.04012.04
5.4.110.0150.04312.03
5.4.100.0130.04612.04
5.4.90.0190.03912.04
5.4.80.0160.04312.03
5.4.70.0150.04412.03
5.4.60.0140.04312.03
5.4.50.0170.07012.02
5.4.40.0170.04412.01
5.4.30.0220.03912.01
5.4.20.0150.04212.01
5.4.10.0290.06812.01
5.4.00.0200.04111.50
5.3.290.0100.04512.80
5.3.280.0070.04712.71
5.3.270.0230.07612.73
5.3.260.0150.05112.72
5.3.250.0190.04512.72
5.3.240.0200.04012.72
5.3.230.0320.09112.71
5.3.220.0180.04212.68
5.3.210.0150.04612.68
5.3.200.0190.04112.68
5.3.190.0170.04512.68
5.3.180.0160.04512.68
5.3.170.0170.04412.67
5.3.160.0170.04712.68
5.3.150.0130.05012.68
5.3.140.0260.06712.67
5.3.130.0210.04012.66
5.3.120.0170.04412.66
5.3.110.0160.04712.66
5.3.100.0140.04612.14
5.3.90.0160.04312.13
5.3.80.0180.04312.12
5.3.70.0330.08712.12
5.3.60.0150.04612.09
5.3.50.0200.04112.05
5.3.40.0150.04812.05
5.3.30.0220.06712.02
5.3.20.0120.05011.79
5.3.10.0160.04111.75
5.3.00.0240.06311.73
5.2.170.0130.0349.24
5.2.160.0060.0409.24
5.2.150.0110.0369.25
5.2.140.0150.0349.24
5.2.130.0120.0379.20
5.2.120.0120.0389.20
5.2.110.0410.0709.20
5.2.100.0130.0359.21
5.2.90.0110.0359.21
5.2.80.0160.0329.20
5.2.70.0130.0359.20
5.2.60.0110.0379.15
5.2.50.0160.0319.11
5.2.40.0090.0389.09
5.2.30.0150.0319.07
5.2.20.0160.0339.06
5.2.10.0130.0338.96
5.2.00.0110.0388.82
5.1.60.0200.0518.11
5.1.50.0130.0298.11
5.1.40.0110.0298.09
5.1.30.0120.0308.42
5.1.20.0120.0318.45
5.1.10.0290.0748.16
5.1.00.0110.0318.16
5.0.50.0120.0266.66
5.0.40.0150.0476.52
5.0.30.0110.0356.34
5.0.20.0060.0266.30
5.0.10.0080.0236.28
5.0.00.0070.0376.27
4.4.90.0060.0194.78
4.4.80.0060.0184.75
4.4.70.0070.0184.75
4.4.60.0100.0154.76
4.4.50.0070.0184.77
4.4.40.0090.0274.71
4.4.30.0080.0194.76
4.4.20.0090.0174.84
4.4.10.0100.0154.85
4.4.00.0070.0304.76
4.3.110.0070.0494.67
4.3.100.0100.0144.67
4.3.90.0060.0184.64
4.3.80.0060.0284.59
4.3.70.0070.0174.63
4.3.60.0070.0184.63
4.3.50.0070.0174.63
4.3.40.0060.0284.54
4.3.30.0090.0453.32
4.3.20.0060.0173.31
4.3.10.0170.0663.27
4.3.00.0000.01713.20

preferences:
49.4 ms | 401 KiB | 5 Q