3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo phpversion(); echo "<br />"; $j = json_encode(array('tja'=>'ba')); $fishy = $j.'tjoven{}}}}'."\0".'dasdasdsad'; var_dump($fishy); $jtest = @json_decode($fishy, true); if($jtest !== null && is_array($jtest)){ var_dump('true'); pr($jtest); }else{ var_dump('false'); } die;

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)
7.4.10.0100.01014.68
7.4.00.0070.00914.83
7.3.130.0040.01414.95
7.3.120.0080.00815.63
7.3.110.0060.01015.54
7.3.100.0050.00615.60
7.3.90.0040.01015.62
7.3.80.0090.00215.57
7.3.70.0070.00515.52
7.3.60.0010.01415.48
7.3.50.0060.00615.62
7.3.40.0020.01115.58
7.3.30.0070.00715.56
7.3.20.0070.00616.88
7.3.10.0060.00716.74
7.3.00.0050.00716.91
7.2.260.0070.01014.88
7.2.250.0080.01015.05
7.2.240.0050.01215.68
7.2.230.0070.00815.72
7.2.220.0060.01015.77
7.2.210.0040.01015.89
7.2.200.0050.01015.75
7.2.190.0070.00615.70
7.2.180.0040.01015.74
7.2.170.0070.00615.71
7.2.160.0070.00816.11
7.2.150.0050.00817.04
7.2.140.0080.00517.04
7.2.130.0030.01017.06
7.2.120.0050.00917.13
7.2.110.0060.01016.91
7.2.100.0090.00717.12
7.2.90.0080.00717.07
7.2.80.0030.00917.05
7.2.70.0080.00617.05
7.2.60.0050.00917.09
7.2.50.0070.00517.12
7.2.40.0060.00916.98
7.2.30.0070.00816.90
7.2.20.0020.00817.04
7.2.10.0090.00617.07
7.2.00.0050.01017.74
7.1.330.0060.00816.30
7.1.320.0040.00816.30
7.1.310.0060.00916.24
7.1.300.0080.00516.26
7.1.290.0060.00816.20
7.1.280.0060.00916.23
7.1.270.0050.00816.28
7.1.260.0050.00916.24
7.1.250.0030.00816.34
7.1.240.0110.00415.62
7.1.230.0040.01215.54
7.1.220.0030.00915.68
7.1.210.0070.00415.76
7.1.200.0060.00615.75
7.1.190.0000.01715.70
7.1.180.0030.00615.70
7.1.170.0000.00915.84
7.1.160.0070.00715.77
7.1.150.0030.00615.77
7.1.140.0030.00915.87
7.1.130.0060.00815.76
7.1.120.0000.01715.77
7.1.110.0030.00715.79
7.1.100.0020.01216.97
7.1.90.0030.01116.01
7.1.80.0030.01015.90
7.1.70.0070.00616.30
7.1.60.0080.01017.73
7.1.50.0100.00716.35
7.1.40.0100.00315.58
7.1.30.0070.00715.87
7.1.20.0070.01015.80
7.1.10.0040.01115.86
7.1.00.0090.03819.22
7.0.330.0090.00015.35
7.0.320.0000.00915.41
7.0.310.0000.01515.37
7.0.300.0100.00315.36
7.0.290.0050.00515.13
7.0.280.0040.00815.29
7.0.270.0070.00415.58
7.0.260.0040.00715.43
7.0.250.0040.00815.31
7.0.240.0040.00715.54
7.0.230.0060.00615.19
7.0.220.0070.00715.32
7.0.210.0060.00315.41
7.0.200.0030.00716.04
7.0.190.0000.01315.34
7.0.180.0070.01115.39
7.0.170.0040.00715.41
7.0.160.0040.01115.64
7.0.150.0030.01215.40
7.0.140.0050.04018.80
7.0.130.0060.00915.04
7.0.120.0000.01415.37
7.0.110.0070.01015.44
7.0.100.0040.01515.47
7.0.90.0120.04217.66
7.0.80.0130.03717.70
7.0.70.0320.03017.71
7.0.60.0300.04417.81
7.0.50.0320.04417.89
7.0.40.0140.03516.63
7.0.30.0080.04116.79
7.0.20.0060.03116.75
7.0.10.0080.04316.71
7.0.00.0110.04416.79
5.6.400.0070.01014.40
5.6.390.0080.00814.32
5.6.380.0080.00614.53
5.6.370.0030.00914.32
5.6.360.0030.00914.37
5.6.350.0050.00514.47
5.6.340.0070.00314.22
5.6.330.0070.01014.66
5.6.320.0100.00314.33
5.6.310.0030.00714.45
5.6.300.0030.01114.44
5.6.290.0120.00014.61
5.6.280.0080.03817.67
5.6.270.0040.00814.44
5.6.260.0140.00313.96
5.6.250.0040.01214.08
5.6.240.0070.04317.40
5.6.230.0040.04617.54
5.6.220.0030.04317.48
5.6.210.0120.03817.50
5.6.200.0140.03517.66
5.6.190.0070.04317.58
5.6.180.0050.02317.56
5.6.170.0120.04217.58
5.6.160.0060.03817.66
5.6.150.0070.04217.83
5.6.140.0070.02317.67
5.6.130.0050.03517.66
5.6.120.0150.03517.76
5.6.110.0060.04117.53
5.6.100.0070.02817.64
5.6.90.0060.04317.59
5.6.80.0120.03917.33
5.6.70.0090.02117.29
5.6.60.0060.04017.27
5.6.50.0140.04017.31
5.6.40.0050.04317.11
5.6.30.0080.02817.35
5.6.20.0120.03317.38
5.6.10.0050.04517.26
5.6.00.0100.03117.31
5.5.380.0080.04517.31
5.5.370.0050.04417.19
5.5.360.0070.04217.34
5.5.350.0060.04517.30
5.5.340.0070.04517.64
5.5.330.0100.04317.55
5.5.320.0090.04617.57
5.5.310.0060.04417.69
5.5.300.0080.03217.57
5.5.290.0060.04317.55
5.5.280.0050.04617.58
5.5.270.0110.03517.68
5.5.260.0030.04917.54
5.5.250.0090.04317.43
5.5.240.0080.02817.16
5.5.230.0100.03817.21
5.5.220.0030.04617.25
5.5.210.0030.02617.24
5.5.200.0120.04017.22
5.5.190.0020.04717.10
5.5.180.0070.03217.27
5.5.170.0030.00614.02
5.5.160.0110.04017.03
5.5.150.0070.03217.12
5.5.140.0080.02817.28
5.5.130.0050.02217.13
5.5.120.0030.04617.03
5.5.110.0080.02517.10
5.5.100.0020.03817.14
5.5.90.0080.01817.21
5.5.80.0030.02717.25
5.5.70.0060.02317.28
5.5.60.0020.03017.06
5.5.50.0100.01816.95
5.5.40.0060.02017.26
5.5.30.0020.02717.26
5.5.20.0080.04317.10
5.5.10.0070.02816.96
5.5.00.0020.03417.04
5.4.450.0110.04115.27
5.4.440.0060.02615.07
5.4.430.0090.03715.22
5.4.420.0030.03815.09
5.4.410.0060.03815.24
5.4.400.0070.03814.92
5.4.390.0130.03514.92
5.4.380.0050.04114.76
5.4.370.0050.03715.16
5.4.360.0040.03915.04
5.4.350.0070.04015.10
5.4.340.0050.04415.14
5.4.330.0050.00810.91
5.4.320.0050.03615.08
5.4.310.0080.04214.92
5.4.300.0080.03315.01
5.4.290.0060.04114.77
5.4.280.0050.03515.03
5.4.270.0090.03715.00
5.4.260.0050.02315.04
5.4.250.0070.03714.97
5.4.240.0050.02814.90
5.4.230.0050.02215.01
5.4.220.0020.03014.87
5.4.210.0080.01914.81
5.4.200.0100.02014.86
5.4.190.0030.02515.01
5.4.180.0030.02115.01
5.4.170.0080.01714.99
5.4.160.0020.03314.98
5.4.150.0030.03515.18
5.4.140.0030.02213.64
5.4.130.0030.02113.64
5.4.120.0070.01713.58
5.4.110.0000.02513.73
5.4.100.0040.02013.49
5.4.90.0050.03213.65
5.4.80.0030.02213.73
5.4.70.0000.02413.51
5.4.60.0050.02113.80
5.4.50.0060.01913.67
5.4.40.0030.02313.48
5.4.30.0090.03313.67
5.4.20.0050.01913.64
5.4.10.0040.02513.61
5.4.00.0070.01513.26
5.3.290.0050.04112.58
5.3.280.0080.03812.52
5.3.270.0090.02012.50
5.3.260.0030.02812.54
5.3.250.0020.02012.57
5.3.240.0020.02312.46
5.3.230.0070.01712.35
5.3.220.0100.03212.34
5.3.210.0030.02112.37
5.3.200.0090.01512.41
5.3.190.0060.02012.46
5.3.180.0050.02112.38
5.3.170.0020.02212.49
5.3.160.0010.02312.55
5.3.150.0020.02212.49
5.3.140.0050.02012.55
5.3.130.0030.03612.40
5.3.120.0000.02812.50
5.3.110.0050.02012.45
5.3.100.0070.02512.18
5.3.90.0050.02112.20
5.3.80.0070.02312.15
5.3.70.0050.03812.23
5.3.60.0030.03712.17
5.3.50.0050.02312.14
5.3.40.0020.02712.16
5.3.30.0030.03312.21
5.3.20.0070.01812.00
5.3.10.0030.04111.76
5.3.00.0020.02211.84
5.2.170.0070.05711.13
5.2.160.0000.04310.97
5.2.150.0100.02311.16
5.2.140.0030.03711.06
5.2.130.0000.02711.17
5.2.120.0000.04711.02
5.2.110.0070.04311.02
5.2.100.0000.03311.12
5.2.90.0030.05710.95
5.2.80.0030.02711.16
5.2.70.0070.02711.07
5.2.60.0000.03010.84
5.2.50.0070.03311.00
5.2.40.0200.01310.86
5.2.30.0100.05010.77
5.2.20.0000.03010.95
5.2.10.0030.02710.97
5.2.00.0030.02710.81
5.1.60.0030.0209.87
5.1.50.0000.02710.01
5.1.40.0070.0479.99
5.1.30.0030.05310.24
5.1.20.0000.03310.29
5.1.10.0030.05710.11
5.1.00.0100.05310.14
5.0.50.0030.0478.59
5.0.40.0000.0478.44
5.0.30.0030.0378.24
5.0.20.0030.0408.26
5.0.10.0000.0308.23
5.0.00.0070.0608.22
4.4.90.0070.0107.39
4.4.80.0070.0107.39
4.4.70.0000.0177.39
4.4.60.0000.0177.39
4.4.50.0000.0337.39
4.4.40.0030.0237.39
4.4.30.0000.0137.39
4.4.20.0030.0337.39
4.4.10.0030.0377.39
4.4.00.0000.0507.39
4.3.110.0070.0177.39
4.3.100.0000.0207.39
4.3.90.0030.0307.39
4.3.80.0030.0537.39
4.3.70.0100.0277.39
4.3.60.0000.0237.39
4.3.50.0030.0207.39
4.3.40.0070.0277.39
4.3.30.0000.0337.39
4.3.20.0030.0137.39
4.3.10.0030.0237.39
4.3.00.0000.0237.39

preferences:
37.13 ms | 400 KiB | 5 Q