3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "test"; $contact = "Test Contact"; $email = "test@testing.comm"; $phone = "12345678"; $obj = new stdClass(); $obj->id = "5f4e3913035190c04f69e83de9798019"; $obj->Type = "0"; $obj->Name = $name; $obj->Contact = $contact; $obj->Email = $email; $obj->Phone = $phone; $obj->Cellular = $phone; $obj->Address = "הרחוב שלי 23"; $obj->City = "תל אביב"; $obj->Zip = "11233"; $obj->Comments = "הערות יתקבלו בברכה"; $obj2 = new stdClass(); $obj2->NewAccount = $obj; function json_encode_unicode($data) { return preg_replace_callback('/(?<!\\\\)\\\\u([0-9a-f]{4})/i', function ($m) { $d = pack("H*", $m[1]); $r = mb_convert_encoding($d, "UTF8", "UTF-16BE"); return $r!=="?" && $r!=="" ? $r : $m[0]; }, json_encode($data) ); } $data = json_encode_unicode($obj2); echo $data;

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.0090.00618.80
8.3.50.0130.00821.39
8.3.40.0040.01519.04
8.3.30.0040.01419.18
8.3.20.0080.00018.94
8.3.10.0000.00821.13
8.3.00.0090.00023.52
8.2.180.0120.00418.66
8.2.170.0070.00722.96
8.2.160.0140.00020.77
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.32
8.2.110.0070.00422.53
8.2.100.0060.00618.13
8.2.90.0000.00819.52
8.2.80.0030.00518.13
8.2.70.0070.00218.00
8.2.60.0050.00318.05
8.2.50.0040.00418.13
8.2.40.0030.00518.28
8.2.30.0040.00421.35
8.2.20.0030.00517.99
8.2.10.0030.00618.01
8.2.00.0000.00818.19
8.1.280.0100.01725.92
8.1.270.0000.00823.99
8.1.260.0030.01726.35
8.1.250.0040.00428.09
8.1.240.0030.00722.68
8.1.230.0000.01121.13
8.1.220.0030.00618.77
8.1.210.0080.00319.10
8.1.200.0000.00917.86
8.1.190.0000.00817.78
8.1.180.0040.00418.10
8.1.170.0030.00519.15
8.1.160.0000.00819.17
8.1.150.0000.00819.08
8.1.140.0040.00417.89
8.1.130.0000.00718.02
8.1.120.0070.00017.87
8.1.110.0050.00317.84
8.1.100.0000.00717.84
8.1.90.0070.00017.85
8.1.80.0000.00717.76
8.1.70.0070.00017.75
8.1.60.0090.00017.92
8.1.50.0000.00817.86
8.1.40.0040.00417.95
8.1.30.0040.00418.06
8.1.20.0080.00017.91
8.1.10.0000.00717.96
8.1.00.0040.00718.01
8.0.300.0100.00519.89
8.0.290.0000.00717.30
8.0.280.0000.00718.70
8.0.270.0000.00817.35
8.0.260.0030.00317.06
8.0.250.0040.00417.11
8.0.240.0040.00717.16
8.0.230.0040.00417.29
8.0.220.0000.00717.11
8.0.210.0000.00717.20
8.0.200.0030.00317.13
8.0.190.0000.00917.27
8.0.180.0050.00217.19
8.0.170.0030.00617.13
8.0.160.0070.00017.14
8.0.150.0030.00317.16
8.0.140.0000.00817.12
8.0.130.0060.00013.64
8.0.120.0040.00417.07
8.0.110.0040.00417.09
8.0.100.0080.00017.09
8.0.90.0040.00417.14
8.0.80.0030.01017.25
8.0.70.0030.00617.05
8.0.60.0000.00817.07
8.0.50.0050.00217.24
8.0.30.0100.00917.33
8.0.20.0100.00917.44
8.0.10.0000.00717.33
8.0.00.0090.00817.08
7.4.330.0050.00014.98
7.4.320.0000.00616.74
7.4.300.0000.00617.01
7.4.290.0000.00716.78
7.4.280.0030.00316.97
7.4.270.0000.00816.97
7.4.260.0030.00313.61
7.4.250.0040.00416.71
7.4.240.0080.00016.90
7.4.230.0040.00417.01
7.4.220.0090.00916.76
7.4.210.0060.00916.92
7.4.200.0030.00316.79
7.4.190.0000.00716.95
7.4.160.0070.01016.91
7.4.150.0170.00317.40
7.4.140.0060.01217.86
7.4.130.0240.01216.89
7.4.120.0110.00816.79
7.4.110.0110.00716.97
7.4.100.0030.01517.07
7.4.90.0090.01316.91
7.4.80.0120.00619.39
7.4.70.0030.01516.89
7.4.60.0040.01216.65
7.4.50.0000.00916.81
7.4.40.0060.00622.77
7.4.30.0070.01116.91
7.4.00.0130.00315.41
7.3.330.0030.00313.50
7.3.320.0030.00313.42
7.3.310.0080.00016.77
7.3.300.0030.00316.70
7.3.290.0080.00816.68
7.3.280.0070.00816.68
7.3.270.0120.00617.40
7.3.260.0090.01118.24
7.3.250.0120.00616.76
7.3.240.0120.00916.93
7.3.230.0110.00616.63
7.3.210.0100.00716.88
7.3.200.0140.00719.39
7.3.190.0160.00716.99
7.3.180.0060.00916.66
7.3.170.0070.01016.76
7.3.160.0160.00016.95
7.3.120.0120.00615.20
7.3.110.0060.01015.35
7.3.100.0030.00615.05
7.3.90.0030.01215.41
7.3.80.0070.00715.12
7.3.70.0030.01215.01
7.3.60.0030.01415.20
7.3.50.0000.01514.88
7.3.40.0030.01215.24
7.3.30.0070.01114.90
7.3.20.0070.00716.76
7.3.10.0130.00017.04
7.3.00.0000.01316.80
7.2.330.0100.01016.97
7.2.320.0100.00616.96
7.2.310.0100.00716.89
7.2.300.0130.00316.88
7.2.290.0120.00417.02
7.2.240.0060.00915.41
7.2.230.0060.00915.39
7.2.220.0000.01215.59
7.2.210.0060.00915.25
7.2.200.0070.01015.10
7.2.190.0000.00915.36
7.2.180.0080.00415.58
7.2.170.0000.01015.11
7.2.160.0110.00315.28
7.2.150.0000.01217.21
7.2.140.0060.01017.26
7.2.130.0070.00717.27
7.2.120.0070.01117.28
7.2.110.0030.01017.13
7.2.100.0030.01317.10
7.2.90.0120.00317.45
7.2.80.0110.00317.41
7.2.70.0000.01417.32
7.2.60.0140.00916.92
7.2.50.0030.01517.36
7.2.40.0030.00917.20
7.2.30.0070.01017.30
7.2.20.0080.00817.38
7.2.10.0060.00917.41
7.2.00.0050.00918.59
7.1.330.0070.00316.32
7.1.320.0090.00615.95
7.1.310.0100.00616.02
7.1.300.0030.01016.20
7.1.290.0030.01016.24
7.1.280.0080.00616.13
7.1.270.0140.00016.20
7.1.260.0100.00316.24
7.1.250.0030.00716.00
7.1.200.0080.00815.93
7.1.100.0030.01018.39
7.1.70.0090.00317.28
7.1.60.0100.01619.40
7.1.50.0090.01216.96
7.1.00.0030.04322.46
7.0.200.0030.00517.07
7.0.140.0070.06722.07
7.0.90.0670.07320.18
7.0.80.0430.05719.96
7.0.70.0270.04019.89
7.0.60.0400.06019.93
7.0.50.0370.03720.33
7.0.40.0030.06720.09
7.0.30.0000.08720.05
7.0.20.0070.07720.11
7.0.10.0070.04319.99
7.0.00.0070.08020.14
5.6.280.0030.07320.89
5.6.240.0070.04720.61
5.6.230.0070.08020.60
5.6.220.0100.03720.62
5.6.210.0070.06320.57
5.6.200.0030.07721.04
5.6.190.0100.08021.05
5.6.180.0130.07020.97
5.6.170.0030.05321.03
5.6.160.0000.04721.14
5.6.150.0200.03021.09
5.6.140.0070.04721.00
5.6.130.0030.08320.96
5.6.120.0170.06721.12
5.6.110.0070.09021.11
5.6.100.0030.04721.08
5.6.90.0030.09021.11
5.6.80.0030.05020.40
5.6.70.0000.05020.50
5.6.60.0070.07720.39
5.6.50.0170.03320.44
5.6.40.0170.06320.47
5.6.30.0030.07020.39
5.6.20.0070.04320.32
5.6.10.0100.07320.35
5.6.00.0030.07320.37
5.5.380.0030.04320.50
5.5.370.0070.07720.34
5.5.360.0100.03320.33
5.5.350.0070.07320.45
5.5.340.0030.05020.87
5.5.330.0000.07720.92
5.5.320.0070.04020.75
5.5.310.0100.07720.89
5.5.300.0070.08020.65
5.5.290.0130.07320.89
5.5.280.0070.04020.84
5.5.270.0130.05720.86
5.5.260.0070.07720.86
5.5.250.0100.06720.62
5.5.240.0030.04720.12
5.5.230.0030.04320.27
5.5.220.0070.05320.25
5.5.210.0130.07320.30
5.5.200.0230.06320.28
5.5.190.0000.04720.27
5.5.180.0030.04020.19
5.5.160.0070.04320.27
5.5.150.0070.04320.13
5.5.140.0100.07720.23
5.5.130.0100.07720.09
5.5.120.0070.05720.21
5.5.110.0100.06319.99
5.5.100.0070.07020.18
5.5.90.0000.05720.02
5.5.80.0000.04720.13
5.5.70.0070.04020.15
5.5.60.0030.04020.10
5.5.50.0030.03320.06
5.5.40.0030.03720.06
5.5.30.0070.04320.06
5.5.20.0000.05320.16
5.5.10.0000.04319.98
5.5.00.0070.03320.07
5.4.450.0070.07719.21
5.4.440.0030.04319.40
5.4.430.0070.07319.45
5.4.420.0030.08019.28
5.4.410.0130.04319.24
5.4.400.0000.08018.85
5.4.390.0170.04019.03
5.4.380.0030.04319.13
5.4.370.0170.05718.85
5.4.360.0030.07019.16
5.4.350.0070.04319.03
5.4.340.0100.07319.21
5.4.320.0100.07319.18
5.4.310.0130.07319.16
5.4.300.0230.05719.11
5.4.290.0170.05719.09
5.4.280.0200.04019.25
5.4.270.0000.04719.07
5.4.260.0070.04019.09
5.4.250.0070.05019.12
5.4.240.0030.04019.04
5.4.230.0000.04718.84
5.4.220.0070.04019.04
5.4.210.0030.03719.11
5.4.200.0130.03019.11
5.4.190.0000.04019.09
5.4.180.0100.03019.17
5.4.170.0000.04318.83
5.4.160.0000.04019.21
5.4.150.0000.03719.01
5.4.140.0000.04016.20
5.4.130.0000.05716.43
5.4.120.0000.04016.41
5.4.110.0070.03316.48
5.4.100.0070.03016.54
5.4.90.0100.05716.52
5.4.80.0070.03716.38
5.4.70.0030.03016.43
5.4.60.0030.03716.33
5.4.50.0000.04016.36
5.4.40.0030.03716.50
5.4.30.0030.03316.48
5.4.20.0070.03316.24
5.4.10.0030.03716.35
5.4.00.0070.03315.65
5.3.290.0070.07014.57
5.3.280.0030.04014.66
5.3.270.0000.04014.67
5.3.260.0000.04014.67
5.3.250.0030.03714.66
5.3.240.0000.04014.60
5.3.230.0030.04014.66
5.3.220.0030.03714.68
5.3.210.0030.03714.63
5.3.200.0030.04014.53
5.3.190.0030.07314.52
5.3.180.0030.06314.73
5.3.170.0130.02314.68
5.3.160.0030.04014.71
5.3.150.0070.03314.52
5.3.140.0030.03714.62
5.3.130.0030.04714.64
5.3.120.0070.03314.53
5.3.110.0070.03314.48
5.3.100.0070.03314.05
5.3.90.0070.03313.95
5.3.80.0000.04314.16
5.3.70.0030.03714.07
5.3.60.0000.04014.08
5.3.50.0000.04014.06
5.3.40.0100.03314.05
5.3.30.0030.03014.05
5.3.20.0030.05313.72
5.3.10.0030.03313.72
5.3.00.0070.03013.75
5.2.170.0030.02711.21
5.2.160.0000.03311.08
5.2.150.0000.02711.18
5.2.140.0070.03011.06
5.2.130.0030.04010.99
5.2.120.0030.02311.02
5.2.110.0030.03011.20
5.2.100.0000.03011.16
5.2.90.0000.03311.20
5.2.80.0000.02711.23
5.2.70.0030.03011.16
5.2.60.0000.04011.06
5.2.50.0000.03011.04
5.2.40.0000.03011.11
5.2.30.0000.03011.08
5.2.20.0030.02710.82
5.2.10.0070.03310.85
5.2.00.0000.02710.62
5.1.60.0100.03310.01
5.1.50.0000.02710.07
5.1.40.0070.03310.09
5.1.30.0030.05010.33
5.1.20.0030.05310.45
5.1.10.0030.05310.18
5.1.00.0030.05010.08
5.0.50.0000.0408.56
5.0.40.0170.0278.49
5.0.30.0070.0608.23
5.0.20.0070.0408.27
5.0.10.0000.0378.27
5.0.00.0070.0608.16
4.4.90.0000.0177.02
4.4.80.0000.0137.02
4.4.70.0000.0137.02
4.4.60.0030.0137.02
4.4.50.0000.0137.02
4.4.40.0000.0237.02
4.4.30.0030.0137.02
4.4.20.0000.0377.02
4.4.10.0030.0337.02
4.4.00.0030.0537.02
4.3.110.0000.0407.02
4.3.100.0030.0207.02
4.3.90.0030.0337.02
4.3.80.0000.0507.02
4.3.70.0030.0207.02
4.3.60.0100.0277.02
4.3.50.0030.0207.02
4.3.40.0030.0437.02
4.3.30.0030.0377.02
4.3.20.0000.0207.02
4.3.10.0030.0337.02
4.3.00.0030.0307.02

preferences:
67.82 ms | 400 KiB | 5 Q