3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); function gzdecode_filler( $data, $length = 0 ) { $fp = fopen( 'compress.zlib://data:application/x-gzip;base64,' . base64_encode( $data ), 'r' ); fseek( $fp, SEEK_END ); var_dump( ftell( $fp ) ); $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*', "1f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c0000001f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c000000")));

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.0180.00016.63
8.3.50.0130.00618.40
8.3.40.0000.01518.84
8.3.30.0150.00418.84
8.3.20.0080.00018.86
8.3.10.0080.00022.63
8.3.00.0030.00621.54
8.2.180.0080.01220.53
8.2.170.0140.00722.96
8.2.160.0120.00919.46
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.75
8.2.110.0100.00024.30
8.2.100.0110.00017.91
8.2.90.0040.00417.63
8.2.80.0030.00517.97
8.2.70.0040.00417.93
8.2.60.0000.00818.16
8.2.50.0050.00318.10
8.2.40.0000.00824.60
8.2.30.0070.00019.34
8.2.20.0000.00717.64
8.2.10.0030.00517.79
8.2.00.0070.00417.73
8.1.280.0150.00425.92
8.1.270.0070.00024.66
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0140.00319.43
8.1.230.0090.00317.66
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0070.00018.85
8.1.150.0000.00718.80
8.1.140.0040.00417.52
8.1.130.0030.00317.93
8.1.120.0030.00417.47
8.1.110.0040.00417.50
8.1.100.0070.00017.54
8.1.90.0020.00517.41
8.1.80.0020.00517.36
8.1.70.0070.00317.53
8.1.60.0030.00617.73
8.1.50.0050.00317.55
8.1.40.0040.00417.64
8.1.30.0030.00517.74
8.1.20.0040.00417.77
8.1.10.0040.00417.58
8.1.00.0040.00417.57
8.0.300.0000.01018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.41
8.0.270.0070.00017.37
8.0.260.0030.00616.83
8.0.250.0040.00717.13
8.0.240.0060.00317.04
8.0.230.0050.00317.02
8.0.220.0030.00617.03
8.0.210.0000.00716.98
8.0.200.0000.00717.08
8.0.190.0070.00017.03
8.0.180.0030.00717.03
8.0.170.0060.00317.01
8.0.160.0070.00016.89
8.0.150.0040.00416.93
8.0.140.0040.00716.98
8.0.130.0030.00313.45
8.0.120.0020.00517.02
8.0.110.0040.00416.93
8.0.100.0070.00017.17
8.0.90.0040.00416.98
8.0.80.0090.00617.05
8.0.70.0050.00216.96
8.0.60.0080.00016.89
8.0.50.0040.00416.88
8.0.30.0170.00516.90
8.0.20.0120.01017.27
8.0.10.0000.00716.92
8.0.00.0160.00316.78
7.4.330.0020.00213.11
7.4.320.0050.00216.63
7.4.300.0060.00016.62
7.4.290.0000.00716.44
7.4.280.0030.00616.63
7.4.270.0070.00016.64
7.4.260.0080.00013.54
7.4.250.0050.00316.52
7.4.240.0030.00316.70
7.4.230.0030.00316.49
7.4.220.0150.00916.63
7.4.210.0050.01016.64
7.4.200.0030.00416.39
7.4.190.0000.00716.57
7.4.160.0090.00616.41
7.4.150.0070.01116.54
7.4.140.0140.00516.56
7.4.130.0120.00516.56
7.4.120.0040.01416.47
7.4.110.0160.00316.74
7.4.100.0140.00716.82
7.4.90.0130.01016.73
7.4.80.0030.01419.39
7.4.70.0090.00916.54
7.4.60.0060.01216.59
7.4.50.0080.00416.44
7.4.40.0070.01116.46
7.4.30.0080.00816.47
7.4.00.0080.00815.14
7.3.330.0000.00513.47
7.3.320.0050.00013.41
7.3.310.0000.00816.49
7.3.300.0070.00016.46
7.3.290.0070.01116.45
7.3.280.0090.00816.49
7.3.270.0060.01316.65
7.3.260.0060.01816.73
7.3.250.0070.01316.44
7.3.240.0130.00416.65
7.3.230.0060.01116.66
7.3.210.0130.00316.71
7.3.200.0060.01216.58
7.3.190.0130.00716.38
7.3.180.0060.00916.27
7.3.170.0090.00616.52
7.3.160.0070.01416.48
7.3.120.0060.00614.81
7.2.330.0150.00316.74
7.2.320.0040.01416.47
7.2.310.0150.00916.64
7.2.300.0150.00316.75
7.2.290.0080.00916.77
7.2.60.0070.00718.80
7.2.00.0000.01421.50
7.1.200.0060.00917.71
7.1.100.0060.00620.19
7.1.70.0040.00419.16
7.1.60.0160.00919.40
7.1.50.0040.01818.70
7.1.00.0000.07324.45
7.0.200.0060.00318.82
7.0.140.0070.07324.11
7.0.120.0070.06724.08
7.0.60.0200.06720.07
7.0.50.0030.08717.90
7.0.40.0000.05320.27
7.0.30.0300.04320.19
7.0.20.0330.07720.27
7.0.10.0130.06321.82
7.0.00.0030.05020.20
5.6.280.0030.07321.15
5.6.210.0070.03720.68
5.6.200.0030.07018.30
5.6.190.0100.08720.53
5.6.180.0230.05720.64
5.6.170.0300.08320.47
5.6.160.0130.07720.53
5.6.150.0070.04018.18
5.6.140.0070.08318.21
5.6.130.0030.04718.31
5.6.120.0100.03321.13
5.6.110.0130.08321.05
5.6.100.0100.08021.04
5.6.90.0070.08021.09
5.6.80.0200.06720.37
5.6.70.1800.03020.45
5.5.350.0100.04020.34
5.5.340.0070.03318.06
5.5.330.0100.06720.60
5.5.320.0270.03720.41
5.5.310.0270.06720.38
5.5.300.0030.06718.05
5.5.290.0170.07317.99
5.5.280.0100.05720.71
5.5.270.0030.09020.88
5.5.260.0000.09320.90
5.5.250.0030.05320.62
5.5.240.0100.07720.25
5.4.450.0130.07319.49
5.4.440.0170.05019.61
5.4.430.0100.04319.50
5.4.420.0000.04319.33
5.4.410.0070.06319.47
5.4.400.0070.07719.28
5.4.390.0000.04319.04
5.4.380.0130.04019.22
5.4.370.0130.04019.24
5.4.360.0000.05019.15
5.4.350.0100.04319.27
5.4.340.0070.06019.01
5.4.320.0030.08019.19
5.4.310.0130.05718.95
5.4.300.0030.06318.87
5.4.290.0070.04719.11
5.4.280.0070.03718.94
5.4.270.0100.07719.15
5.4.260.0070.06319.27
5.4.250.0030.06319.00
5.4.240.0130.07319.27
5.4.230.0070.08019.19
5.4.220.0030.07718.87
5.4.210.0130.04719.10
5.4.200.0030.05019.21
5.4.190.0000.05319.18
5.4.180.0130.07319.26
5.4.170.0100.05319.16
5.4.160.0100.07318.84
5.4.150.0100.07719.13
5.4.140.0130.03716.48
5.4.130.0100.07016.62
5.4.120.0070.03716.38
5.4.110.0100.04316.75
5.4.100.0170.05316.47
5.4.90.0130.04316.63
5.4.80.0070.07016.42
5.4.70.0000.04716.52
5.4.60.0030.07316.42
5.4.50.0200.05316.43
5.4.40.0030.07716.39
5.4.30.0030.04716.54
5.4.20.0070.04316.47
5.4.10.0070.03716.39
5.4.00.0070.07015.99
5.3.290.0070.07314.72
5.3.280.0070.06014.65
5.3.270.0070.04014.56
5.3.260.0030.05714.68
5.3.250.0030.07314.66
5.3.240.0070.03714.65
5.3.230.0100.07314.68
5.3.220.0100.07014.75
5.3.210.0100.07314.67
5.3.200.0100.05314.49
5.3.190.0100.06314.59
5.3.180.0130.07314.66
5.3.170.0000.05014.59
5.3.160.0070.04314.59
5.3.150.0100.04314.59
5.3.140.0070.05014.47
5.3.130.0030.04714.59
5.3.120.0070.06014.47
5.3.110.0030.04014.61
5.3.100.0030.05014.09
5.3.90.0100.07014.05
5.3.80.0030.06313.97
5.3.70.0130.06714.10
5.3.60.0070.04313.96
5.3.50.0030.07714.00
5.3.40.0100.07014.01
5.3.30.0070.07713.95
5.3.20.0100.07013.80
5.3.10.0070.04313.61
5.3.00.0100.03313.82
5.2.170.0030.05711.22
5.2.160.0100.05711.22
5.2.150.0030.04711.22
5.2.140.0030.06311.13
5.2.130.0000.04311.14
5.2.120.0170.05311.13
5.2.110.0100.05711.14
5.2.100.0030.05711.13
5.2.90.0030.03011.05
5.2.80.0030.06311.18
5.2.70.0000.03311.29
5.2.60.0030.06311.07
5.2.50.0070.06011.21
5.2.40.0130.05011.07
5.2.30.0030.03711.01
5.2.20.0070.03311.14
5.2.10.0030.06010.93
5.2.00.0030.03310.77
5.1.60.0130.0439.91
5.1.50.0030.0579.91
5.1.40.0000.0339.89
5.1.30.0100.03710.30
5.1.20.0000.06010.36
5.1.10.0100.04310.23
5.1.00.0070.04310.08
5.0.50.0030.0438.63
5.0.40.0030.0438.45
5.0.30.0130.0538.38
5.0.20.0030.0308.28
5.0.10.0100.0378.32
5.0.00.0000.0478.13
4.4.90.0070.0277.91
4.4.80.0070.0307.91
4.4.70.0030.0337.91
4.4.60.0070.0307.91
4.4.50.0030.0337.91
4.4.40.0000.0377.91
4.4.30.0000.0237.91
4.4.20.0070.0137.91
4.4.10.0000.0207.91
4.4.00.0100.0477.91
4.3.110.0000.0207.91
4.3.100.0030.0307.91
4.3.90.0000.0207.91
4.3.80.0030.0437.91
4.3.70.0070.0307.91
4.3.60.0030.0307.91
4.3.50.0000.0377.91
4.3.40.0070.0437.91
4.3.30.0000.0377.91
4.3.20.0070.0337.91
4.3.10.0000.0277.91
4.3.00.0000.0177.91

preferences:
45.91 ms | 401 KiB | 5 Q