3v4l.org

run code in 300+ PHP versions simultaneously
<?php class derp { protected $d = "hurrdurr"; } class test { protected $val = "test"; protected $derp; public function __construct() { $this->derp = new derp; } public function __get($var) { return $this->$var; } } $test = new test; echo json_encode($test, JSON_FORCE_OBJECT);

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.00616.63
8.3.50.0090.00918.31
8.3.40.0180.00318.70
8.3.30.0100.00318.95
8.3.20.0040.00420.38
8.3.10.0040.00423.53
8.3.00.0040.00420.77
8.2.180.0070.01518.41
8.2.170.0000.01422.96
8.2.160.0110.00420.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00022.25
8.2.110.0030.00621.94
8.2.100.0150.00017.84
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0050.00318.04
8.2.50.0080.00018.07
8.2.40.0000.00718.22
8.2.30.0040.00418.07
8.2.20.0030.00617.55
8.2.10.0040.00417.53
8.2.00.0030.00517.50
8.1.270.0000.00923.87
8.1.260.0020.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0110.00019.16
8.1.220.0090.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0050.00317.41
8.1.180.0050.00318.10
8.1.170.0070.00318.59
8.1.160.0040.00421.91
8.1.150.0000.00718.58
8.1.140.0040.00417.29
8.1.130.0000.00717.87
8.1.120.0040.00417.34
8.1.110.0000.00817.41
8.1.100.0040.00417.42
8.1.90.0000.00717.38
8.1.80.0030.00317.36
8.1.70.0040.00417.25
8.1.60.0000.00817.52
8.1.50.0000.00817.49
8.1.40.0050.00217.48
8.1.30.0030.00617.63
8.1.20.0000.00817.61
8.1.10.0000.00817.54
8.1.00.0060.00617.40
8.0.300.0040.00418.77
8.0.290.0040.00417.30
8.0.280.0080.00018.45
8.0.270.0030.00317.26
8.0.260.0030.00316.73
8.0.250.0040.00416.98
8.0.240.0000.00716.88
8.0.230.0030.00316.82
8.0.220.0030.00316.84
8.0.210.0040.00416.80
8.0.200.0060.00016.91
8.0.190.0040.00416.90
8.0.180.0040.00416.76
8.0.170.0080.00016.77
8.0.160.0000.00716.71
8.0.150.0070.00016.68
8.0.140.0070.00016.78
8.0.130.0000.00613.27
8.0.120.0000.00816.72
8.0.110.0000.00716.73
8.0.100.0050.00316.88
8.0.90.0040.00316.68
8.0.80.0170.00416.83
8.0.70.0040.00416.83
8.0.60.0040.00416.95
8.0.50.0080.00016.78
8.0.30.0070.01217.27
8.0.20.0100.00817.40
8.0.10.0040.00416.99
8.0.00.0120.00916.74
7.4.330.0050.00015.00
7.4.320.0000.00616.55
7.4.300.0000.00816.43
7.4.290.0030.00316.56
7.4.280.0080.00016.51
7.4.270.0050.00216.63
7.4.260.0000.00816.51
7.4.250.0000.00716.58
7.4.240.0020.00516.61
7.4.230.0000.00716.51
7.4.220.0090.00816.46
7.4.210.0050.00916.61
7.4.200.0050.00216.68
7.4.190.0000.00816.77
7.4.160.0030.01316.60
7.4.150.0070.01117.40
7.4.140.0110.00717.86
7.4.130.0100.00716.42
7.4.120.0120.00616.49
7.4.110.0120.00316.44
7.4.100.0180.00016.36
7.4.90.0100.01016.49
7.4.80.0070.01016.36
7.4.70.0130.00316.41
7.4.60.0030.01316.55
7.4.50.0040.00416.52
7.4.40.0060.00922.77
7.4.30.0060.01016.56
7.4.00.0070.01115.21
7.3.330.0030.00313.30
7.3.320.0030.00313.37
7.3.310.0000.00716.15
7.3.300.0000.00716.31
7.3.290.0040.01116.29
7.3.280.0070.01016.28
7.3.270.0170.00017.40
7.3.260.0060.01116.42
7.3.250.0090.00916.43
7.3.240.0070.01016.63
7.3.230.0120.00616.39
7.3.210.0140.00316.35
7.3.200.0060.01119.39
7.3.190.0150.00716.39
7.3.180.0070.01016.59
7.3.170.0100.00616.48
7.3.160.0030.01216.27
7.3.120.0100.00714.78
7.2.330.0160.01016.70
7.2.320.0060.01316.61
7.2.310.0090.00916.41
7.2.300.0050.01116.63
7.2.290.0080.00816.48
7.2.00.0000.01219.11
7.1.100.0030.01018.14
7.1.70.0060.00916.92
7.1.60.0170.00719.29
7.1.50.0110.01517.04
7.1.00.0030.07722.32
7.0.200.0030.00716.85
7.0.140.0000.07322.04
7.0.90.0130.07720.04
7.0.80.0170.04019.87
7.0.70.0130.06720.14
7.0.60.0070.08319.96
7.0.50.0030.08720.21
7.0.40.0170.08020.13
7.0.30.0000.04720.05
7.0.20.0070.06719.96
7.0.10.0100.07019.91
7.0.00.0200.07020.16
5.6.240.0070.08020.73
5.6.230.0000.08020.75
5.6.220.0070.07720.59
5.6.210.0070.08320.69
5.6.200.0170.07721.13
5.6.190.0100.08321.03
5.6.180.0070.08721.14
5.6.170.0100.07720.98
5.6.160.0170.07321.01
5.6.150.0230.07321.00
5.6.140.0070.08321.04
5.6.130.0200.06721.05
5.6.120.0200.07721.08
5.6.110.0030.08721.16
5.6.100.0130.04321.00
5.6.90.0070.05721.04
5.6.80.0170.07020.51
5.6.70.0130.07020.33
5.6.60.0100.07020.33
5.6.50.0170.06720.39
5.6.40.0070.08320.42
5.6.30.0070.08020.41
5.6.20.0170.06320.52
5.6.10.0170.07720.31
5.6.00.0130.07020.41
5.5.380.0200.06320.34
5.5.370.0030.08020.55
5.5.360.0170.07320.45
5.5.350.0130.07320.38
5.5.340.0030.09020.65
5.5.330.0000.09020.87
5.5.320.0100.05020.77
5.5.310.0070.09020.76
5.5.300.0030.08320.84
5.5.290.0170.06320.82
5.5.280.0070.08720.93
5.5.270.0100.07720.92
5.5.260.0200.03720.76
5.5.250.0130.06320.55
5.5.240.0070.08020.23
5.5.230.0000.08720.24
5.5.220.0070.07320.21
5.5.210.0030.08020.13
5.5.200.0130.06020.11
5.5.190.0100.08020.00
5.5.180.0130.07720.20
5.5.160.0070.08020.24
5.5.150.0030.08020.08
5.5.140.0030.06020.13
5.5.130.0030.08020.26
5.5.120.0130.07320.16
5.5.110.0070.08020.26
5.5.100.0070.07720.08
5.5.90.0130.06320.16
5.5.80.0100.07319.95
5.5.70.0100.07320.04
5.5.60.0230.04719.97
5.5.50.0030.04020.14
5.5.40.0100.08020.11
5.5.30.0100.06320.07
5.5.20.0000.07319.95
5.5.10.0070.05019.96
5.5.00.0070.05720.11
5.4.450.0030.07719.43
5.4.440.0070.08719.41
5.4.430.0030.08319.55
5.4.420.0100.04319.48
5.4.410.0000.04719.23
5.4.400.0170.06319.13
5.4.390.0100.05019.12
5.4.380.0100.04718.88
5.4.370.0130.07019.18
5.4.360.0030.04318.85
5.4.350.0200.07019.14
5.4.340.0100.07719.16
5.4.320.0130.06719.12
5.4.310.0030.08019.04
5.4.300.0100.06318.95
5.4.290.0070.08319.04
5.4.280.0030.06018.94
5.4.270.0130.07019.12
5.4.260.0100.07019.09
5.4.250.0130.07019.04
5.4.240.0030.08019.02
5.4.230.0030.07319.02
5.4.220.0070.08019.15
5.4.210.0070.06719.04
5.4.200.0130.05018.87
5.4.190.0100.05019.03
5.4.180.0000.06719.02
5.4.170.0100.04018.89
5.4.160.0100.07719.01
5.4.150.0030.05718.93
5.4.140.0070.06316.26
5.4.130.0130.06316.40
5.4.120.0070.07016.20
5.4.110.0030.07316.48
5.4.100.0100.07316.54
5.4.90.0130.04316.52
5.4.80.0100.07316.50
5.4.70.0200.04316.51
5.4.60.0000.07316.32
5.4.50.0100.03716.45
5.4.40.0070.04716.54
5.4.30.0070.07716.48
5.4.20.0130.06716.35
5.4.10.0100.05716.32
5.4.00.0100.04015.81
5.3.290.0070.07714.68
5.3.280.0130.06714.71
5.3.270.0070.06014.66
5.3.260.0230.04014.59
5.3.250.0070.07314.56
5.3.240.0030.06014.66
5.3.230.0070.07014.63
5.3.220.0200.06014.64
5.3.210.0000.05014.54
5.3.200.0000.05014.50
5.3.190.0100.07014.52
5.3.180.0030.08014.50
5.3.170.0070.07314.55
5.3.160.0030.05314.55
5.3.150.0100.06714.69
5.3.140.0130.07714.61
5.3.130.0130.06014.56
5.3.120.0030.07314.57
5.3.110.0130.06014.48
5.3.100.0100.07714.14
5.3.90.0070.07014.05
5.3.80.0070.07714.08
5.3.70.0100.07314.07
5.3.60.0100.06713.93
5.3.50.0070.04313.86
5.3.40.0030.07313.89
5.3.30.0030.06713.97
5.3.20.0130.06313.72
5.3.10.0130.05013.68
5.3.00.0030.07313.55
5.2.170.0070.06011.21
5.2.160.0000.06311.14
5.2.150.0070.06711.25
5.2.140.0070.06011.25
5.2.130.0030.06711.17
5.2.120.0000.05711.25
5.2.110.0070.05711.24
5.2.100.0070.04311.09
5.2.90.0100.05711.16
5.2.80.0100.05311.02
5.2.70.0100.06311.16
5.2.60.0070.05710.96
5.2.50.0070.06010.91
5.2.40.0030.06311.11
5.2.30.0030.06310.99
5.2.20.0070.05710.90
5.2.10.0030.05710.79
5.2.00.0030.06010.66
5.1.60.0030.0479.99
5.1.50.0000.0609.85
5.1.40.0070.0509.97
5.1.30.0000.04710.16
5.1.20.0030.06010.30
5.1.10.0070.05310.19
5.1.00.0070.04710.06
5.0.50.0030.0438.58
5.0.40.0000.0508.48
5.0.30.0070.0538.30
5.0.20.0070.0378.20
5.0.10.0030.0438.27
5.0.00.0070.0608.16
4.4.90.0030.0307.24
4.4.80.0030.0337.24
4.4.70.0000.0377.24
4.4.60.0030.0277.24
4.4.50.0030.0377.24
4.4.40.0030.0577.24
4.4.30.0030.0337.24
4.4.20.0070.0277.24
4.4.10.0070.0307.24
4.4.00.0030.0407.24
4.3.110.0000.0407.24
4.3.100.0030.0377.24
4.3.90.0030.0337.24
4.3.80.0000.0437.24
4.3.70.0030.0337.24
4.3.60.0030.0337.24
4.3.50.0030.0307.24
4.3.40.0000.0537.24
4.3.30.0000.0237.24
4.3.20.0030.0207.24
4.3.10.0030.0337.24
4.3.00.0000.0277.24

preferences:
59.76 ms | 400 KiB | 5 Q