3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gzdecode_filler( $data, $length ) { $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(hex2bin("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.0040.01418.41
8.3.50.0090.00921.93
8.3.40.0000.01518.88
8.3.30.0110.00418.71
8.3.20.0060.00318.60
8.3.10.0030.00521.27
8.3.00.0080.00023.48
8.2.180.0070.00716.63
8.2.170.0150.00022.96
8.2.160.0030.01720.35
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00721.11
8.2.110.0110.00019.41
8.2.100.0040.00817.72
8.2.90.0080.00017.75
8.2.80.0060.00317.97
8.2.70.0000.00817.80
8.2.60.0080.00017.84
8.2.50.0030.00518.10
8.2.40.0090.00019.13
8.2.30.0040.00419.18
8.2.20.0070.00017.66
8.2.10.0030.00517.69
8.2.00.0000.00917.69
8.1.280.0170.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0120.00923.96
8.1.230.0110.00020.88
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0000.00917.10
8.1.180.0030.00618.10
8.1.170.0040.00418.63
8.1.160.0040.00418.78
8.1.150.0040.00418.70
8.1.140.0080.00017.39
8.1.130.0030.00317.82
8.1.120.0030.00317.21
8.1.110.0040.00417.41
8.1.100.0080.00017.30
8.1.90.0040.00417.39
8.1.80.0040.00417.25
8.1.70.0000.00717.25
8.1.60.0060.00317.54
8.1.50.0080.00017.46
8.1.40.0060.00317.37
8.1.30.0040.00417.50
8.1.20.0050.00317.62
8.1.10.0000.00817.50
8.1.00.0080.00417.47
8.0.300.0000.00918.77
8.0.290.0000.00716.75
8.0.280.0030.00318.34
8.0.270.0070.00017.21
8.0.260.0040.00416.89
8.0.250.0030.00516.97
8.0.240.0040.00717.00
8.0.230.0040.00416.94
8.0.220.0030.00316.92
8.0.210.0040.00416.90
8.0.200.0070.00017.01
8.0.190.0040.00416.80
8.0.180.0060.00316.95
8.0.170.0040.00416.87
8.0.160.0030.00316.96
8.0.150.0060.00316.73
8.0.140.0040.00416.80
8.0.130.0000.00613.32
8.0.120.0000.00816.93
8.0.110.0000.00716.91
8.0.100.0040.00416.93
8.0.90.0070.00016.93
8.0.80.0100.00916.86
8.0.70.0080.00016.70
8.0.60.0070.00016.82
8.0.50.0090.00017.02
8.0.30.0150.00717.21
8.0.20.0090.01117.40
8.0.10.0040.00416.95
8.0.00.0060.01416.80
7.4.330.0030.00314.79
7.4.320.0000.00616.35
7.4.300.0040.00416.47
7.4.290.0070.00016.53
7.4.280.0040.00416.45
7.4.270.0030.00316.61
7.4.260.0000.00613.26
7.4.250.0050.00316.41
7.4.240.0030.00316.56
7.4.230.0030.00516.30
7.4.220.0130.00316.62
7.4.210.0070.00916.52
7.4.200.0080.00016.45
7.4.190.0000.00716.41
7.4.160.0060.01016.42
7.4.150.0130.00417.40
7.4.140.0100.00917.86
7.4.130.0110.01016.49
7.4.120.0110.00616.49
7.4.110.0090.00916.49
7.4.100.0120.00916.49
7.4.90.0130.01016.62
7.4.80.0030.01319.37
7.4.70.0030.01316.38
7.4.60.0090.01316.49
7.4.50.0030.00616.19
7.4.40.0060.00922.27
7.4.30.0030.01916.60
7.4.00.0110.00414.95
7.3.330.0000.00513.33
7.3.320.0070.00013.25
7.3.310.0000.00816.34
7.3.300.0000.00716.36
7.3.290.0120.00316.21
7.3.280.0090.00916.32
7.3.270.0100.00717.40
7.3.260.0080.00818.24
7.3.250.0100.01016.45
7.3.240.0120.00916.63
7.3.230.0110.01016.43
7.3.210.0000.01616.28
7.3.200.0140.00319.39
7.3.190.0130.00316.27
7.3.180.0100.00716.38
7.3.170.0060.00916.50
7.3.160.0160.00016.51
7.3.120.0060.01214.80
7.2.330.0090.00916.61
7.2.320.0130.01016.49
7.2.310.0130.01316.62
7.2.300.0100.00716.33
7.2.290.0080.00816.48
7.2.80.0030.01016.55
7.2.60.0030.00616.83
7.2.00.0080.00419.15
7.1.200.0060.00615.66
7.1.100.0060.00617.91
7.1.70.0100.00717.11
7.1.60.0070.01719.40
7.1.50.0000.02516.51
7.1.00.0030.06722.29
7.0.200.0030.00316.84
7.0.140.0030.07322.04
7.0.60.0070.06719.92
7.0.50.0070.06017.95
7.0.40.0100.04720.09
7.0.30.0300.04320.24
7.0.20.0270.08020.12
7.0.10.0100.07020.15
7.0.00.0030.08720.24
5.6.280.0070.07320.90
5.6.210.0030.06720.47
5.6.200.0030.09318.22
5.6.190.0100.08720.58
5.6.180.0570.05020.63
5.6.170.0230.04020.41
5.6.160.0070.06720.52
5.6.150.0030.08318.24
5.6.140.0070.05718.14
5.6.130.0000.05718.18
5.6.120.0030.04021.03
5.6.110.0070.08721.00
5.6.100.0100.03721.05
5.6.90.0130.07720.98
5.6.80.0130.04020.38
5.5.350.0000.03720.31
5.5.340.0070.07018.09
5.5.330.0000.04320.47
5.5.320.0170.04320.24
5.5.310.0200.03720.30
5.5.300.0070.05717.97
5.5.290.0070.05318.07
5.5.280.0030.05720.78
5.5.270.0100.08720.90
5.5.260.0030.04320.77
5.5.250.0130.07320.71
5.5.240.0200.07020.27
5.4.450.1570.03719.39
5.4.440.1800.03319.49
5.4.430.1570.03319.18
5.4.420.1930.03719.63
5.4.410.1870.04319.36
5.4.400.1530.03319.23
5.4.390.1530.04018.99
5.4.380.1630.04319.06
5.4.370.1570.03718.88
5.4.360.1670.04319.03
5.4.350.1370.04019.07
5.4.340.0070.03318.77
5.4.320.0000.08019.12
5.4.310.0030.03719.03
5.4.300.1130.04019.30
5.4.290.1530.03719.17
5.4.280.1770.04718.90
5.4.270.0800.04018.99
5.4.260.0070.03319.17
5.4.250.0100.03018.88
5.4.240.1730.04019.21
5.4.230.1430.04319.03
5.4.220.1670.04018.97
5.4.210.1470.03718.77
5.4.200.1730.05018.88
5.4.190.1500.03719.16
5.4.180.1900.05318.90
5.4.170.1500.03718.84
5.4.160.1630.03019.20
5.4.150.1470.04018.98
5.4.140.1670.05016.51
5.4.130.1670.03716.34
5.4.120.0030.07316.30
5.4.110.0000.06716.46
5.4.100.0800.03316.25
5.4.90.1430.04016.37
5.4.80.1700.04716.55
5.4.70.1800.03316.34
5.4.60.1730.04016.33
5.4.50.1770.04016.43
5.4.40.1700.04716.48
5.4.30.1770.03716.37
5.4.20.1570.03016.51
5.4.10.1830.04316.38
5.4.00.1730.04016.11
5.3.290.1170.05014.78
5.3.280.0030.08014.67
5.3.270.0030.08714.63
5.3.260.0900.04314.65
5.3.250.1770.03714.68
5.3.240.1600.03314.83
5.3.230.1700.04714.61
5.3.220.1630.04714.54
5.3.210.1570.04314.48
5.3.200.1770.04714.71
5.3.190.1700.04714.57
5.3.180.1530.04014.61
5.3.170.1470.04014.71
5.3.160.1530.03714.64
5.3.150.1470.04314.47
5.3.140.0400.06014.58
5.3.130.0270.03314.52
5.3.120.0170.07314.79
5.3.110.0300.03014.77
5.3.100.0170.03714.04
5.3.90.0130.03713.92
5.3.80.0230.02713.94
5.3.70.0170.03314.02
5.3.60.0170.07314.01
5.3.50.0230.06014.03
5.3.40.0200.05013.88
5.3.30.0270.02713.92
5.3.20.0130.03713.92
5.3.10.0270.04013.67
5.3.00.0270.05713.55
5.2.170.0070.05711.07
5.2.160.0100.03711.22
5.2.150.0130.03011.07
5.2.140.0100.03711.29
5.2.130.0100.03011.09
5.2.120.0130.03011.18
5.2.110.0200.03311.32
5.2.100.0130.02711.06
5.2.90.0200.03011.02
5.2.80.0170.02311.05
5.2.70.0070.04311.24
5.2.60.0100.03011.20
5.2.50.0100.03011.10
5.2.40.0170.02711.08
5.2.30.0070.03010.90
5.2.20.0200.05711.11
5.2.10.0170.03710.76
5.2.00.0130.02710.79
5.1.60.0030.03010.12
5.1.50.0100.0279.90
5.1.40.0130.02310.03
5.1.30.0100.02710.43
5.1.20.0200.02310.28
5.1.10.0170.0339.96
5.1.00.0130.02310.00
5.0.50.0130.0138.45
5.0.40.0070.0208.33
5.0.30.0100.0338.24
5.0.20.0070.0238.12
5.0.10.0100.0338.31
5.0.00.0030.0338.16
4.4.90.0070.0137.81
4.4.80.0070.0137.81
4.4.70.0030.0177.81
4.4.60.0070.0137.81
4.4.50.0070.0137.81
4.4.40.0070.0237.81
4.4.30.0100.0137.81
4.4.20.0070.0307.81
4.4.10.0070.0207.81
4.4.00.0030.0277.81
4.3.110.0130.0207.81
4.3.100.0100.0137.81
4.3.90.0070.0177.81
4.3.80.0070.0277.81
4.3.70.0070.0177.81
4.3.60.0070.0137.81
4.3.50.0070.0407.81
4.3.40.0030.0277.81
4.3.30.0070.0377.81
4.3.20.0000.0307.81
4.3.10.0030.0237.81
4.3.00.0070.0207.81

preferences:
38.19 ms | 401 KiB | 5 Q