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 ); 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.0.0beta10.0120.00816.75
8.0.0alpha30.0070.01716.71
8.0.0alpha20.0070.01116.69
8.0.0alpha10.0070.00816.73
7.4.90.0110.00616.71
7.4.80.0100.00716.50
7.4.70.0030.01316.43
7.4.60.0130.00316.54
7.4.50.0030.00616.39
7.4.40.0070.00716.63
7.4.30.0030.01416.51
7.4.10.0080.01115.28
7.4.00.0070.01015.01
7.3.210.0150.00416.39
7.3.200.0090.00619.39
7.3.190.0160.00316.68
7.3.180.0060.01216.57
7.3.170.0030.01616.54
7.3.160.0060.00916.57
7.3.130.0070.01114.75
7.3.120.0070.00814.77
7.3.110.0090.00915.07
7.3.100.0120.00315.04
7.3.90.0040.01514.74
7.3.80.0030.00714.89
7.3.70.0090.00614.99
7.3.60.0070.00714.91
7.3.50.0070.00414.81
7.3.40.0070.01014.89
7.3.30.0030.01215.02
7.3.20.0070.01118.66
7.3.10.0120.00318.48
7.3.00.0100.00318.74
7.2.330.0170.00016.63
7.2.320.0110.01116.71
7.2.310.0120.01216.62
7.2.300.0080.00816.77
7.2.290.0110.00916.67
7.2.260.0070.01315.01
7.2.250.0100.00714.93
7.2.240.0100.00615.00
7.2.230.0000.01515.29
7.2.220.0100.00614.67
7.2.210.0110.00015.23
7.2.200.0070.01115.23
7.2.190.0110.00415.10
7.2.180.0040.01115.25
7.2.170.0070.01114.96
7.2.160.0030.01015.04
7.2.150.0070.00718.96
7.2.140.0060.00618.92
7.2.130.0040.01118.87
7.2.120.0000.01618.89
7.2.110.0030.00618.59
7.2.100.0090.00618.67
7.2.90.0030.01618.85
7.2.80.0030.01418.38
7.2.70.0030.00718.61
7.2.60.0020.01318.87
7.2.50.0040.00718.58
7.2.40.0120.00418.83
7.2.30.0030.01019.00
7.2.20.0040.01118.81
7.2.10.0000.01218.94
7.2.00.0040.01119.94
7.1.330.0110.00317.74
7.1.320.0100.00017.78
7.1.310.0080.00417.73
7.1.300.0070.00717.88
7.1.290.0030.00717.97
7.1.280.0140.00017.70
7.1.270.0070.00717.75
7.1.260.0080.00417.65
7.1.250.0030.01317.71
7.1.240.0040.00817.75
7.1.230.0030.01017.44
7.1.220.0070.00717.81
7.1.210.0080.00417.85
7.1.200.0050.00917.73
7.1.190.0040.01117.70
7.1.180.0030.00617.70
7.1.170.0030.00917.89
7.1.160.0080.00817.99
7.1.150.0020.01017.50
7.1.140.0040.01117.71
7.1.130.0060.00617.54
7.1.120.0060.00617.79
7.1.110.0000.01317.77
7.1.100.0040.01018.97
7.1.90.0070.00717.75
7.1.80.0110.00417.61
7.1.70.0050.00518.32
7.1.60.0100.00818.66
7.1.50.0080.01127.32
7.1.40.0030.01017.66
7.1.30.0000.01217.54
7.1.20.0070.01017.68
7.1.10.0060.00917.91
7.1.00.0050.04121.06
7.0.330.0070.01017.38
7.0.320.0110.00417.44
7.0.310.0060.00917.40
7.0.300.0100.00017.66
7.0.290.0030.00717.43
7.0.280.0060.00917.61
7.0.270.0060.00617.50
7.0.260.0030.01317.42
7.0.250.0040.01217.48
7.0.240.0060.00617.66
7.0.230.0030.01317.58
7.0.220.0040.01217.50
7.0.210.0080.00417.40
7.0.200.0100.00218.24
7.0.190.0120.00317.44
7.0.180.0130.00017.29
7.0.170.0030.01017.50
7.0.160.0130.00017.49
7.0.150.0090.00617.39
7.0.140.0080.03820.82
7.0.130.0050.00517.62
7.0.120.0050.04020.74
7.0.110.0100.00317.52
7.0.100.0060.00917.20
7.0.90.0030.01017.50
7.0.80.0000.01117.39
7.0.70.0070.00717.46
7.0.60.0120.03820.56
7.0.50.0120.03917.83
7.0.40.0150.04216.85
7.0.30.0160.02716.93
7.0.20.0180.03716.72
7.0.10.0130.02816.83
7.0.00.0070.02316.86
5.6.400.0040.01114.60
5.6.390.0090.00614.05
5.6.380.0070.00414.23
5.6.370.0000.01114.16
5.6.360.0060.00614.36
5.6.350.0000.01214.58
5.6.340.0000.00914.63
5.6.330.0070.00714.55
5.6.320.0060.00914.27
5.6.310.0030.00714.58
5.6.300.0030.01214.61
5.6.290.0070.00714.80
5.6.280.0050.03917.86
5.6.270.0050.00313.98
5.6.260.0110.00414.18
5.6.250.0100.00314.38
5.6.240.0030.00614.36
5.6.230.0030.01014.25
5.6.220.0030.01014.50
5.6.210.0090.03717.34
5.6.200.0110.03916.28
5.6.190.0040.02817.48
5.6.180.0100.02917.52
5.6.170.0080.02617.33
5.6.160.0060.02317.49
5.6.150.0030.02616.29
5.6.140.0080.04116.27
5.6.130.0080.03516.30
5.6.120.0120.02217.75
5.6.110.0070.02317.76
5.6.100.0070.05217.63
5.6.90.0050.02717.66
5.6.80.0080.03617.32
5.6.70.0080.00614.46
5.6.60.0040.00414.39
5.6.50.0060.00614.23
5.6.40.0060.00314.43
5.6.30.0000.01514.30
5.6.20.0000.01314.00
5.6.10.0070.01014.41
5.6.00.0060.00914.07
5.5.380.0030.00714.31
5.5.370.0050.00514.33
5.5.360.0080.00414.14
5.5.350.1930.02017.24
5.5.340.0070.02816.13
5.5.330.0050.03517.25
5.5.320.0130.04517.08
5.5.310.0120.02617.09
5.5.300.0030.04416.24
5.5.290.0050.04416.16
5.5.280.0090.04017.65
5.5.270.0070.04417.59
5.5.260.0050.04217.63
5.5.250.0030.04317.44
5.5.240.0630.03017.25
5.5.230.0040.00814.13
5.5.220.0070.00314.13
5.5.210.0030.00914.05
5.5.200.0060.00913.96
5.5.190.0030.00714.27
5.5.180.0090.00314.27
5.5.170.0030.00614.02
5.5.160.0100.00714.11
5.5.150.0040.01414.27
5.5.140.0040.01114.19
5.5.130.0060.00614.26
5.5.120.0050.00514.47
5.5.110.0030.00714.04
5.5.100.0040.00414.30
5.5.90.0000.00914.16
5.5.80.0130.00014.32
5.5.70.0060.00613.97
5.5.60.0000.01214.34
5.5.50.0110.00514.18
5.5.40.0110.01114.07
5.5.30.0120.00014.30
5.5.20.0140.00414.23
5.5.10.0110.00514.54
5.5.00.0060.00914.23
5.4.450.0030.04815.40
5.4.440.0050.02815.26
5.4.430.0080.03515.19
5.4.420.0030.02615.48
5.4.410.0060.04315.23
5.4.400.0020.03015.04
5.4.390.0030.02414.96
5.4.380.0080.02214.96
5.4.370.0030.02315.01
5.4.360.0070.04015.15
5.4.350.0030.03814.96
5.4.340.0070.03515.04
5.4.330.0030.00610.98
5.4.320.0050.03114.86
5.4.310.0020.02214.75
5.4.300.0050.01814.94
5.4.290.0090.01815.15
5.4.280.0050.02415.01
5.4.270.0090.03715.21
5.4.260.0050.02715.17
5.4.250.0030.03315.16
5.4.240.0030.03015.04
5.4.230.0030.02515.04
5.4.220.0020.04314.91
5.4.210.0070.04215.11
5.4.200.0070.04115.23
5.4.190.0020.04315.05
5.4.180.0030.02515.03
5.4.170.0040.04214.98
5.4.160.0080.02314.91
5.4.150.0030.04315.07
5.4.140.0030.02613.70
5.4.130.0030.02913.84
5.4.120.0030.02313.61
5.4.110.0020.04213.81
5.4.100.0030.02913.82
5.4.90.0040.04113.89
5.4.80.0040.02913.59
5.4.70.0070.03513.82
5.4.60.0100.04013.57
5.4.50.0030.04213.76
5.4.40.0020.03213.76
5.4.30.0070.04313.69
5.4.20.0050.03413.64
5.4.10.0050.03213.81
5.4.00.0080.02013.57
5.3.290.0010.02612.72
5.3.280.0050.04012.54
5.3.270.0030.02512.68
5.3.260.0080.03312.61
5.3.250.0060.02012.65
5.3.240.0020.02412.62
5.3.230.0050.03012.63
5.3.220.0030.04112.49
5.3.210.0040.02912.63
5.3.200.0050.02412.47
5.3.190.0020.02512.59
5.3.180.0040.02212.55
5.3.170.0000.02712.64
5.3.160.0050.03812.51
5.3.150.0100.03012.64
5.3.140.0080.02012.66
5.3.130.0090.03112.44
5.3.120.0080.02412.64
5.3.110.0110.03812.60
5.3.100.0020.02712.34
5.3.90.0050.02012.36
5.3.80.0080.03112.30
5.3.70.0090.02012.24
5.3.60.0040.02212.29
5.3.50.0070.04112.22
5.3.40.0020.04112.25
5.3.30.0050.02212.26
5.3.20.0050.03312.13
5.3.10.0030.04312.06
5.3.00.0050.02111.95
5.2.170.0100.02711.13
5.2.160.0070.06011.08
5.2.150.0100.06011.25
5.2.140.0000.03311.31
5.2.130.0000.03711.08
5.2.120.0030.06711.04
5.2.110.0100.02311.18
5.2.100.0100.06011.09
5.2.90.0100.05711.14
5.2.80.0070.06011.12
5.2.70.0030.04011.13
5.2.60.0070.04011.09
5.2.50.0030.05711.01
5.2.40.0100.05311.02
5.2.30.0070.04311.16
5.2.20.0070.03310.89
5.2.10.0100.05010.96
5.2.00.0100.05010.74
5.1.60.0070.0409.99
5.1.50.0030.05310.02
5.1.40.0030.0309.91
5.1.30.0030.06010.35
5.1.20.0000.05310.32
5.1.10.0100.05010.09
5.1.00.0070.05010.07
5.0.50.0000.0438.55
5.0.40.0070.0338.47
5.0.30.0070.0338.28
5.0.20.0030.0408.19
5.0.10.0030.0438.19
5.0.00.0000.0378.32
4.4.90.0000.0407.83
4.4.80.0030.0337.83
4.4.70.0000.0207.83
4.4.60.0000.0377.83
4.4.50.0030.0137.83
4.4.40.0000.0337.83
4.4.30.0030.0337.83
4.4.20.0030.0377.83
4.4.10.0030.0337.83
4.4.00.0000.0377.83
4.3.110.0000.0307.83
4.3.100.0030.0377.83
4.3.90.0030.0237.83
4.3.80.0000.0537.83
4.3.70.0070.0277.83
4.3.60.0030.0207.83
4.3.50.0000.0307.83
4.3.40.0000.0537.83
4.3.30.0070.0337.83
4.3.20.0000.0377.83
4.3.10.0030.0337.83
4.3.00.0070.0207.83