3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "This is some data It has some new lines in it Look, there's some more"; var_dump($data); $json = json_encode($data); var_dump($json); var_dump(json_decode($json));

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.40.0120.00318.65
8.3.30.0110.00718.96
8.3.20.0070.00020.16
8.3.10.0080.00023.47
8.3.00.0060.00319.26
8.2.170.0110.00622.96
8.2.160.0080.00620.40
8.2.150.0110.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0070.00322.27
8.2.110.0090.00022.25
8.2.100.0060.00619.51
8.2.90.0060.00319.08
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0090.00017.80
8.2.50.0030.00518.07
8.2.40.0060.00318.09
8.2.30.0040.00418.01
8.2.20.0090.00017.61
8.2.10.0080.00018.01
8.2.00.0000.00717.69
8.1.270.0090.00623.88
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.86
8.1.230.0070.00319.02
8.1.220.0040.00417.79
8.1.210.0000.00718.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0040.00418.62
8.1.160.0070.00021.80
8.1.150.0000.00718.80
8.1.140.0080.00017.43
8.1.130.0000.00717.86
8.1.120.0070.00017.44
8.1.110.0000.00817.41
8.1.100.0040.00317.41
8.1.90.0070.00017.44
8.1.80.0000.00817.38
8.1.70.0000.00717.34
8.1.60.0000.00917.47
8.1.50.0000.00817.29
8.1.40.0050.00317.34
8.1.30.0040.00417.43
8.1.20.0000.00817.48
8.1.10.0040.00417.40
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00818.29
8.0.270.0070.00017.06
8.0.260.0060.00017.24
8.0.250.0050.00216.84
8.0.240.0040.00416.89
8.0.230.0030.00616.79
8.0.220.0040.00416.71
8.0.210.0000.00716.82
8.0.200.0070.00016.95
8.0.190.0040.00416.81
8.0.180.0040.00416.70
8.0.170.0070.00016.85
8.0.160.0030.00316.90
8.0.150.0000.00716.75
8.0.140.0040.00416.82
8.0.130.0030.00313.24
8.0.120.0000.00716.73
8.0.110.0040.00416.78
8.0.100.0040.00416.63
8.0.90.0050.00316.71
8.0.80.0120.00316.79
8.0.70.0000.00816.67
8.0.60.0000.00716.74
8.0.50.0000.00716.64
8.0.30.0110.00917.20
8.0.20.0080.01217.40
8.0.10.0000.00716.95
8.0.00.0050.01216.62
7.4.330.0000.00615.02
7.4.320.0030.00316.55
7.4.300.0030.00316.45
7.4.290.0030.00316.54
7.4.280.0030.00516.52
7.4.270.0000.00716.49
7.4.260.0030.00516.52
7.4.250.0000.00816.33
7.4.240.0020.00516.46
7.4.230.0030.00316.53
7.4.220.0150.00416.51
7.4.210.0070.00716.57
7.4.200.0000.00716.24
7.4.160.0160.00616.29
7.4.150.0120.00617.40
7.4.140.0140.01217.86
7.4.130.0090.01416.53
7.4.120.0080.00816.41
7.4.110.0120.00916.33
7.4.100.0090.00916.43
7.4.90.0150.00316.26
7.4.80.0090.01219.39
7.4.70.0060.01316.46
7.4.60.0050.01016.36
7.4.50.0050.00316.11
7.4.40.0130.00316.45
7.4.30.0070.01016.46
7.4.00.0100.00714.65
7.3.330.0000.00612.98
7.3.320.0060.00013.02
7.3.310.0000.00616.14
7.3.300.0030.00315.96
7.3.290.0100.00816.13
7.3.280.0110.00616.12
7.3.270.0150.00317.40
7.3.260.0090.00616.24
7.3.250.0130.00416.26
7.3.240.0120.00616.25
7.3.230.0080.00816.39
7.3.210.0110.00616.36
7.3.200.0130.00919.39
7.3.190.0100.00616.38
7.3.180.0060.00916.45
7.3.170.0040.01616.29
7.3.160.0120.00416.39
7.3.120.0040.01214.64
7.3.110.0080.00814.64
7.3.100.0070.00714.57
7.3.90.0090.00614.60
7.3.80.0030.01314.65
7.3.70.0030.01014.69
7.3.60.0030.00614.57
7.3.50.0090.00614.63
7.3.40.0030.01014.83
7.3.30.0040.00814.67
7.3.20.0030.01016.37
7.3.10.0070.00716.42
7.3.00.0050.01116.53
7.2.330.0100.00716.54
7.2.320.0070.01016.57
7.2.310.0100.00716.63
7.2.300.0040.01516.18
7.2.290.0100.01416.48
7.2.240.0070.01114.95
7.2.230.0000.01514.53
7.2.220.0070.00714.87
7.2.210.0030.01315.10
7.2.200.0060.01214.67
7.2.190.0030.01014.94
7.2.180.0000.01314.77
7.2.170.0040.01214.68
7.2.160.0060.00314.79
7.2.150.0040.00816.89
7.2.140.0070.01016.59
7.2.130.0050.00716.73
7.2.120.0110.00516.85
7.2.110.0070.00816.46
7.2.100.0050.00916.62
7.2.90.0090.00516.78
7.2.80.0100.00516.86
7.2.70.0050.00816.62
7.2.60.0050.01016.93
7.2.50.0090.00416.79
7.2.40.0060.00716.55
7.2.30.0100.00716.84
7.2.20.0030.00916.72
7.2.10.0050.00716.80
7.2.00.0120.00517.68
7.1.330.0000.01915.65
7.1.320.0130.00615.82
7.1.310.0030.01315.64
7.1.300.0090.00315.70
7.1.290.0090.00615.59
7.1.280.0000.01115.79
7.1.270.0040.00715.41
7.1.260.0090.00315.46
7.1.250.0100.00315.71
7.1.100.0000.01217.77
7.1.70.0040.00416.96
7.1.60.0030.02219.11
7.1.50.0110.01816.85
7.1.00.0070.07322.41
7.0.200.0060.00316.48
7.0.140.0100.06721.97
7.0.90.0130.03719.85
7.0.80.0100.03719.82
7.0.70.0130.04719.80
7.0.60.0470.08320.01
7.0.50.0500.05720.30
7.0.40.0100.08019.99
7.0.30.0070.07720.00
7.0.20.0100.08020.13
7.0.10.0070.07719.95
7.0.00.0070.07719.94
5.6.280.0000.07720.90
5.6.240.0130.06720.66
5.6.230.0030.04720.44
5.6.220.0100.07720.56
5.6.210.0070.08020.60
5.6.200.0070.08021.08
5.6.190.0070.05321.04
5.6.180.0130.07321.05
5.6.170.0030.05021.08
5.6.160.0000.05321.08
5.6.150.0170.07321.13
5.6.140.0030.04721.10
5.6.130.0130.07720.94
5.6.120.0030.06721.09
5.6.110.0100.08321.09
5.6.100.0130.07021.11
5.6.90.0070.07721.07
5.6.80.0070.07020.43
5.6.70.0200.07020.39
5.6.60.0130.03720.29
5.6.50.0130.05320.31
5.6.40.0170.07320.35
5.6.30.0030.08020.39
5.6.20.0100.04320.52
5.6.10.0000.08320.30
5.6.00.0170.07020.39
5.5.380.0030.08320.45
5.5.370.0030.04720.39
5.5.360.0000.08320.28
5.5.350.0130.08020.33
5.5.340.0030.05720.61
5.5.330.0030.08720.64
5.5.320.0030.05020.91
5.5.310.0070.08720.73
5.5.300.0000.08720.90
5.5.290.0170.07720.77
5.5.280.0130.04720.87
5.5.270.0070.08320.70
5.5.260.0130.08320.88
5.5.250.0200.04020.66
5.5.240.0070.04720.15
5.5.230.0170.06320.28
5.5.220.0070.05320.15
5.5.210.0000.08320.19
5.5.200.0130.05320.25
5.5.190.0070.06320.11
5.5.180.0100.07720.23
5.5.160.0100.07320.25
5.5.150.0130.06020.22
5.5.140.0100.04020.27
5.5.130.0130.06020.11
5.5.120.0030.04720.11
5.5.110.0200.06020.13
5.5.100.0070.06020.06
5.5.90.0100.05020.05
5.5.80.0100.07320.07
5.5.70.0100.06319.93
5.5.60.0100.07720.07
5.5.50.0030.06720.04
5.5.40.0030.04019.95
5.5.30.0100.08020.03
5.5.20.0070.07320.12
5.5.10.0070.06720.02
5.5.00.0100.07020.11
5.4.450.0070.07719.30
5.4.440.0030.08319.34
5.4.430.0070.07719.10
5.4.420.0030.06019.39
5.4.410.0130.07019.14
5.4.400.0100.06718.97
5.4.390.0070.07719.03
5.4.380.0100.07719.14
5.4.370.0070.03718.78
5.4.360.0070.05019.06
5.4.350.0070.07318.96
5.4.340.0100.07318.98
5.4.320.0000.08019.13
5.4.310.0130.07018.90
5.4.300.0030.07718.95
5.4.290.0030.04019.07
5.4.280.0070.04319.02
5.4.270.0130.06319.05
5.4.260.0100.07719.14
5.4.250.0070.05319.14
5.4.240.0070.07319.04
5.4.230.0000.08018.78
5.4.220.0070.07018.90
5.4.210.0030.07718.93
5.4.200.0100.07719.06
5.4.190.0000.06318.98
5.4.180.0030.05019.06
5.4.170.0070.08019.04
5.4.160.0030.06718.94
5.4.150.0030.05318.76
5.4.140.0070.03716.22
5.4.130.0030.03716.31
5.4.120.0070.03316.32
5.4.110.0130.07016.42
5.4.100.0030.05016.38
5.4.90.0030.07716.40
5.4.80.0070.07316.33
5.4.70.0100.06316.29
5.4.60.0130.07016.28
5.4.50.0030.07716.35
5.4.40.0100.06716.24
5.4.30.0130.06316.29
5.4.20.0030.05016.41
5.4.10.0230.03716.34
5.4.00.0030.07015.73
5.3.290.0100.07314.66
5.3.280.0070.07714.51
5.3.270.0030.08014.57
5.3.260.0100.06714.57
5.3.250.0100.06014.56
5.3.240.0030.05314.59
5.3.230.0000.04014.59
5.3.220.0100.04014.54
5.3.210.0100.06014.43
5.3.200.0130.07014.50
5.3.190.0070.06714.57
5.3.180.0030.05014.52
5.3.170.0100.05314.40
5.3.160.0030.04714.57
5.3.150.0070.06014.55
5.3.140.0030.05014.55
5.3.130.0100.07014.41
5.3.120.0070.04714.41
5.3.110.0030.08314.50
5.3.100.0130.07013.90
5.3.90.0100.06314.01
5.3.80.0100.07014.00
5.3.70.0070.07713.88
5.3.60.0030.05713.96
5.3.50.0130.05713.71
5.3.40.0070.07713.93
5.3.30.0070.07013.89
5.3.20.0100.08013.64
5.3.10.0100.06013.64
5.3.00.0000.04713.59
5.2.170.0100.05710.98
5.2.160.0100.05311.13
5.2.150.0070.06311.06
5.2.140.0070.03711.13
5.2.130.0070.06010.94
5.2.120.0030.05310.92
5.2.110.0070.06011.12
5.2.100.0030.06310.91
5.2.90.0070.02311.14
5.2.80.0070.06011.01
5.2.70.0030.05711.14
5.2.60.0030.06311.03
5.2.50.0030.03310.86
5.2.40.0030.05310.95
5.2.30.0100.02310.77
5.2.20.0070.02710.82
5.2.10.0070.06310.80
5.2.00.0030.06010.76
5.1.60.0030.03310.02
5.1.50.0030.0609.87
5.1.40.0070.0539.83
5.1.30.0100.05310.36
5.1.20.0000.04010.27
5.1.10.0030.02710.13
5.1.00.0070.05310.06
5.0.50.0100.0438.55
5.0.40.0130.0238.48
5.0.30.0070.0608.21
5.0.20.0100.0278.03
5.0.10.0070.0308.26
5.0.00.0000.0638.23
4.4.90.0070.0136.60
4.4.80.0030.0336.60
4.4.70.0000.0206.60
4.4.60.0030.0376.60
4.4.50.0030.0376.60
4.4.40.0000.0576.60
4.4.30.0070.0276.60
4.4.20.0100.0106.60
4.4.10.0030.0336.60
4.4.00.0030.0336.60
4.3.110.0030.0306.60
4.3.100.0030.0336.60
4.3.90.0000.0376.60
4.3.80.0070.0476.60
4.3.70.0000.0376.60
4.3.60.0070.0306.60
4.3.50.0000.0276.60
4.3.40.0070.0536.60
4.3.30.0000.0236.60
4.3.20.0070.0206.60
4.3.10.0000.0206.60
4.3.00.0000.0276.60

preferences:
37.07 ms | 400 KiB | 5 Q