3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $name; public $age; public $likes; function __construct($name, $age, $likes) { $this->name = $name; $this->age = $age; $this->likes = $likes; } function __get($property) { if (property_exists($this, $property)) { return $this->$property; } else { return "Not available"; } } } $user1 = new Test("Sam", 18, "coding"); $jsonData = json_encode($user1); ?> <form action="process.php" method="get"> <input type="hidden" name="data" value="<?= $jsonData; ?>"> <input type="submit" value="go"> </form>

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.5.30.0090.00719.52
8.5.20.0080.00820.26
8.5.10.0090.00916.61
8.5.00.0150.00820.19
8.4.180.0090.00219.54
8.4.170.0130.00923.93
8.4.160.0180.01023.99
8.4.150.0080.00516.84
8.4.140.0110.00917.70
8.4.130.0080.00417.44
8.4.120.0040.00524.17
8.4.110.0110.00822.45
8.4.100.0080.00118.02
8.4.90.0100.01117.92
8.4.80.0080.00119.41
8.4.70.0100.01017.87
8.4.60.0130.00817.44
8.4.50.0120.00618.82
8.4.40.0130.00617.64
8.4.30.0100.01020.42
8.4.20.0070.01317.77
8.4.10.0060.00319.38
8.3.300.0080.01220.75
8.3.290.0110.00920.83
8.3.280.0150.00518.33
8.3.270.0140.00616.42
8.3.260.0060.00316.42
8.3.250.0110.00716.97
8.3.240.0130.00617.20
8.3.230.0150.00316.36
8.3.220.0040.00417.38
8.3.210.0120.00716.74
8.3.200.0090.01116.76
8.3.190.0100.00916.71
8.3.180.0120.00816.27
8.3.170.0090.00918.92
8.3.160.0160.00318.46
8.3.150.0160.00418.95
8.3.140.0090.00916.65
8.3.130.0070.00718.58
8.3.120.0040.00420.60
8.3.110.0160.00020.94
8.3.100.0000.00824.06
8.3.90.0110.00726.77
8.3.80.0060.00318.13
8.3.70.0130.00918.31
8.3.60.0120.00318.29
8.3.50.0110.00716.78
8.3.40.0040.01420.48
8.3.30.0070.00721.05
8.3.20.0070.00024.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.300.0140.00917.88
8.2.290.0140.00520.48
8.2.280.0120.00617.01
8.2.270.0120.00617.29
8.2.260.0140.00019.95
8.2.250.0130.00618.38
8.2.240.0080.00018.72
8.2.230.0070.00422.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0060.00316.63
8.2.190.0150.00418.41
8.2.180.0180.00416.62
8.2.170.0060.00919.01
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00420.88
8.2.110.0030.00622.21
8.2.100.0100.01020.43
8.2.90.0100.01020.70
8.2.80.0140.00720.51
8.2.70.0060.01520.41
8.2.60.0140.00720.36
8.2.50.0150.00420.40
8.2.40.0100.01020.54
8.2.30.0030.01420.43
8.2.20.0130.00720.43
8.2.10.0080.00820.97
8.2.00.0100.00720.93
8.1.340.0090.01321.74
8.1.330.0130.00616.55
8.1.320.0110.00615.98
8.1.310.0080.00016.80
8.1.300.0090.00016.24
8.1.290.0060.00630.84
8.1.280.0100.00725.92
8.1.270.0090.00924.66
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0100.00720.30
8.1.230.0120.00620.40
8.1.220.0100.00720.39
8.1.210.0060.00321.69
8.1.200.0140.00320.26
8.1.190.0130.00719.97
8.1.180.0090.01320.21
8.1.170.0080.00420.28
8.1.160.0060.00320.25
8.1.150.0060.00320.46
8.1.140.0060.00320.10
8.1.130.0000.01020.22
8.1.120.0100.01020.33
8.1.110.0000.01020.25
8.1.100.0100.00020.08
8.1.90.0000.01020.34
8.1.80.0110.00618.50
8.1.70.0070.00318.71
8.1.60.0150.00318.54
8.1.50.0000.00918.63
8.1.40.0060.00318.84
8.1.30.0070.01018.82
8.1.20.0100.00018.73
8.1.10.0060.00318.75
8.1.00.0030.00618.58
8.0.300.0100.01017.84
8.0.290.0120.00417.78
8.0.280.0100.00717.86
8.0.270.0040.00417.81
8.0.260.0000.00917.73
8.0.250.0040.00417.88
8.0.240.0040.00417.89
8.0.230.0040.00418.34
8.0.220.0040.00417.71
8.0.210.0030.00617.77
8.0.200.0030.00617.76
8.0.190.0060.00317.71
8.0.180.0060.00317.82
8.0.170.0060.00317.95
8.0.160.0060.00317.95
8.0.150.0040.00417.77
8.0.140.0040.00417.74
8.0.130.0060.00317.68
8.0.120.0060.00317.76
8.0.110.0030.00617.87
8.0.100.0090.00017.74
8.0.90.0060.00317.79
8.0.80.0040.00417.74
8.0.70.0040.00417.80
8.0.60.0060.00317.64
8.0.50.0060.00317.79
8.0.30.0060.00317.70
8.0.20.0060.00317.83
8.0.10.0040.00417.88

preferences:
80.71 ms | 1125 KiB | 5 Q