3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{"H":[{"f": "FR100400061","d": "2016-01-25T12:17:57","i": "80222557","n": "El gio gonzales","s": 1,"CustAccount": "1004","c":"Court de Tennis","m":"1008","mn":"Wide World Importers","d":"frrt","cb": "123","cd": "2016-01-25T12:17:57"}],"L": [{"i": "IVA21","f": "","n": "Zapatitos","tv": 123.0,"txv": 21.35,"bv": 101.65,"f":"FR100400061","rv": 13.0,"d": "frrt"}],"T":[{"t":"80222557","e":"garanda21@gmail.com","n":"El gio gonzales","c": "PE","cn": "Peru","a":"Calle de abaja bien abajo","g": 1,"b":"23/12/1982"}]}'; $string = 'FR100400061'; /* $str = "sample data"; $bzstr = bzcompress($string, 9); echo $bzstr;*/ //$string = str_repeat('1234567890'.implode('',range('a','z')),48800); echo "Lenght original string: " . strlen($string);//1756800 bytes $compressed = eval(gzdeflate($string, 9)); //$compressed = gzdeflate($compressed, 9); echo ' Lenght compresed string: '.strlen($compressed);//99 bytes //echo $string //echo gzinflate(gzinflate($compressed)); ?>

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.0120.00318.43
8.3.50.0070.01118.30
8.3.40.0150.00019.04
8.3.30.0040.01219.09
8.3.20.0040.00420.72
8.3.10.0040.00420.75
8.3.00.0040.00422.28
8.2.180.0060.00918.30
8.2.170.0060.00922.96
8.2.160.0110.00322.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.02
8.2.120.0040.00426.35
8.2.110.0040.00420.65
8.2.100.0110.00018.16
8.2.90.0080.00019.30
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0030.00618.05
8.2.50.0000.00818.09
8.2.40.0080.00020.67
8.2.30.0040.00419.61
8.2.20.0000.00717.90
8.2.10.0000.00818.27
8.2.00.0000.00718.37
8.1.280.0070.00725.92
8.1.270.0040.00423.88
8.1.260.0070.00028.09
8.1.250.0050.00228.09
8.1.240.0000.00923.98
8.1.230.0090.00317.83
8.1.220.0040.00417.91
8.1.210.0040.00418.77
8.1.200.0060.00317.63
8.1.190.0050.00317.35
8.1.180.0090.00018.10
8.1.170.0030.01018.77
8.1.160.0000.00820.92
8.1.150.0000.00719.04
8.1.140.0060.00319.79
8.1.130.0080.00017.86
8.1.120.0040.00417.66
8.1.110.0000.00917.65
8.1.100.0020.00517.68
8.1.90.0040.00417.64
8.1.80.0040.00417.59
8.1.70.0060.00317.60
8.1.60.0070.00617.79
8.1.50.0040.00417.63
8.1.40.0040.00417.67
8.1.30.0040.00417.81
8.1.20.0000.00917.68
8.1.10.0060.00317.71
8.1.00.0080.00017.72
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0070.00018.62
8.0.270.0030.00317.41
8.0.260.0000.00617.44
8.0.250.0050.00217.26
8.0.240.0000.00817.20
8.0.230.0000.00817.16
8.0.220.0060.00317.06
8.0.210.0040.00417.15
8.0.200.0060.00017.21
8.0.190.0030.00517.17
8.0.180.0050.00317.12
8.0.170.0080.00017.15
8.0.160.0030.00317.18
8.0.150.0000.00817.14
8.0.140.0000.00717.04
8.0.130.0000.00613.68
8.0.120.0090.00017.16
8.0.110.0040.00417.19
8.0.100.0040.00417.09
8.0.90.0040.00417.10
8.0.80.0060.00917.25
8.0.70.0070.00017.02
8.0.60.0040.00417.05
8.0.50.0050.00316.98
8.0.30.0130.00517.34
8.0.20.0080.01217.40
8.0.10.0040.00417.18
8.0.00.0090.00916.92
7.4.330.0060.00016.95
7.4.320.0070.00016.74
7.4.300.0060.00016.61
7.4.290.0060.00316.66
7.4.280.0040.00416.59
7.4.270.0000.00816.57
7.4.260.0000.00816.51
7.4.250.0000.00716.77
7.4.240.0030.00516.78
7.4.230.0000.00716.86
7.4.220.0070.01016.59
7.4.210.0070.01116.67
7.4.200.0040.00416.64
7.4.160.0080.00816.53
7.4.150.0060.01217.40
7.4.140.0070.01017.86
7.4.130.0050.01316.78
7.4.120.0090.00816.62
7.4.110.0100.00716.63
7.4.100.0030.01616.84
7.4.90.0100.01016.70
7.4.80.0070.01119.39
7.4.70.0130.00316.77
7.4.60.0090.00916.75
7.4.50.0070.00716.43
7.4.40.0110.00716.80
7.4.30.0070.01016.60
7.4.00.0030.01215.11
7.3.330.0030.00213.45
7.3.320.0030.00213.49
7.3.310.0000.00716.54
7.3.300.0080.00016.38
7.3.290.0000.00716.49
7.3.280.0100.01016.51
7.3.270.0060.01017.40
7.3.260.0090.01216.43
7.3.250.0100.00916.55
7.3.240.0050.01216.55
7.3.230.0110.01116.66
7.3.210.0060.01016.54
7.3.200.0070.01016.59
7.3.190.0030.01316.59
7.3.180.0030.01316.65
7.3.170.0120.01016.55
7.3.160.0070.00716.65
7.3.10.0030.01016.46
7.3.00.0070.00716.50
7.2.330.0090.01516.66
7.2.320.0040.01416.95
7.2.310.0060.01116.69
7.2.300.0120.00916.50
7.2.290.0130.00316.89
7.2.130.0060.00616.66
7.2.120.0110.00716.33
7.2.110.0170.00716.71
7.2.100.0210.00516.49
7.2.90.0060.01316.66
7.2.80.0110.00516.61
7.2.70.0190.01016.50
7.2.60.0020.01516.92
7.2.50.0060.00816.68
7.2.40.0090.01216.57
7.2.30.0120.00916.60
7.2.20.0080.00816.63
7.2.10.0070.01016.52
7.2.00.0050.00818.01
7.1.250.0060.01215.46
7.1.200.0030.01015.71
7.1.100.0060.00618.24
7.1.70.0040.00417.29
7.1.60.0100.01619.27
7.1.50.0200.00017.05
7.1.00.0100.07022.42
7.0.200.0570.00714.79
7.0.60.0430.06320.04
7.0.50.0130.05018.04
7.0.40.0070.04020.22
7.0.30.0300.04320.10
7.0.20.0330.08320.27
7.0.10.0070.04320.18
7.0.00.0070.04020.25
5.6.280.0030.03320.98
5.6.210.0070.06020.73
5.6.200.0070.04718.31
5.6.190.0170.08020.41
5.6.180.0230.06320.51
5.6.170.0200.07720.59
5.6.160.0100.06020.56
5.6.150.0100.08018.28
5.6.140.0100.07718.28
5.6.130.0100.05018.23
5.6.120.0000.05321.30
5.6.110.0070.06321.30
5.6.100.0030.07021.16
5.6.90.0130.08021.29
5.6.80.0030.04020.67
5.5.350.0270.04720.61
5.5.340.0070.06718.11
5.5.330.0130.08020.29
5.5.320.0470.04720.16
5.5.310.0370.04020.30
5.5.300.0000.07318.14
5.5.290.0030.04018.10
5.5.280.0030.04321.04
5.5.270.0130.04021.02
5.5.260.0030.06721.04
5.5.250.0030.09020.85
5.5.240.0030.03720.36

preferences:
46.38 ms | 401 KiB | 5 Q