3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ public $test = "toto"; private $esaegaegt = "togaegegto"; public function jsencode(){ return json_encode($this); } } $a = new test(); echo $a->jsencode(); var_dump(get_object_vars($a));

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.0160.00318.67
8.3.30.0100.00720.17
8.3.20.0080.00020.21
8.3.10.0080.00022.10
8.3.00.0040.00422.39
8.2.170.0120.00322.96
8.2.160.0150.00020.55
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00820.69
8.2.110.0050.00522.19
8.2.100.0040.00717.91
8.2.90.0050.00317.75
8.2.80.0000.00818.09
8.2.70.0000.00917.93
8.2.60.0050.00318.02
8.2.50.0030.00618.10
8.2.40.0050.00320.34
8.2.30.0000.00719.30
8.2.20.0040.00417.59
8.2.10.0070.00017.61
8.2.00.0040.00417.73
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.06
8.1.230.0030.00719.13
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0000.00917.00
8.1.190.0000.00917.22
8.1.180.0090.00018.10
8.1.170.0030.00618.66
8.1.160.0000.00818.78
8.1.150.0000.00718.60
8.1.140.0000.00717.29
8.1.130.0000.00717.86
8.1.120.0050.00317.45
8.1.110.0000.00717.41
8.1.100.0000.00817.38
8.1.90.0050.00317.43
8.1.80.0030.00317.28
8.1.70.0030.00717.26
8.1.60.0110.00017.51
8.1.50.0070.00017.50
8.1.40.0050.00317.39
8.1.30.0060.00317.50
8.1.20.0000.00817.66
8.1.10.0040.00417.45
8.1.00.0030.00517.48
8.0.300.0040.00419.62
8.0.290.0040.00416.75
8.0.280.0000.00818.36
8.0.270.0030.00317.18
8.0.260.0000.00616.84
8.0.250.0000.00716.98
8.0.240.0000.00916.97
8.0.230.0000.00716.86
8.0.220.0030.00316.80
8.0.210.0000.00716.82
8.0.200.0030.00716.77
8.0.190.0040.00416.84
8.0.180.0070.00016.73
8.0.170.0000.00716.82
8.0.160.0000.00716.68
8.0.150.0040.00416.83
8.0.140.0040.00416.67
8.0.130.0000.00613.20
8.0.120.0000.00716.82
8.0.110.0040.00416.89
8.0.100.0000.00716.71
8.0.90.0000.00716.93
8.0.80.0120.00316.88
8.0.70.0070.00016.86
8.0.60.0050.00216.62
8.0.50.0050.00216.85
8.0.30.0160.00317.15
8.0.20.0140.00517.40
8.0.10.0000.00816.94
8.0.00.0130.00916.77
7.4.330.0000.00616.69
7.4.320.0030.00316.51
7.4.300.0040.00416.59
7.4.290.0070.00016.39
7.4.280.0030.00316.59
7.4.270.0040.00416.59
7.4.260.0000.00513.25
7.4.250.0000.00816.38
7.4.240.0020.00516.50
7.4.230.0000.00816.59
7.4.220.0170.01016.59
7.4.210.0070.00916.64
7.4.200.0000.00716.60
7.4.190.0030.00316.68
7.4.160.0080.00816.27
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0140.00616.40
7.4.120.0130.00416.61
7.4.110.0060.01116.36
7.4.100.0090.01016.36
7.4.90.0120.01216.30
7.4.80.0090.01219.39
7.4.70.0070.01016.39
7.4.60.0100.00716.53
7.4.50.0040.00416.58
7.4.40.0030.01022.77
7.4.30.0130.00316.42
7.4.00.0040.00414.89
7.3.330.0000.00513.22
7.3.320.0050.00013.09
7.3.310.0080.00016.14
7.3.300.0040.00416.13
7.3.290.0110.00416.20
7.3.280.0020.01616.23
7.3.270.0120.00817.40
7.3.260.0060.01116.23
7.3.250.0120.00716.32
7.3.240.0070.01416.50
7.3.230.0040.01316.39
7.3.210.0040.01316.21
7.3.200.0100.00719.39
7.3.190.0090.00916.26
7.3.180.0100.00716.21
7.3.170.0130.01016.28
7.3.160.0070.01016.49
7.3.120.0070.00714.46
7.2.330.0030.01616.62
7.2.320.0060.01516.43
7.2.310.0100.00716.81
7.2.300.0070.00716.34
7.2.290.0130.00316.40
7.2.00.0000.01519.29
7.1.100.0040.00818.16
7.1.70.0030.00317.13
7.1.60.0110.01419.17
7.1.50.0100.01617.02
7.1.00.0000.05022.27
7.0.200.0140.00314.86
7.0.140.0070.07322.12
7.0.90.0600.08019.96
7.0.80.0470.05020.13
7.0.70.0370.05019.91
7.0.60.0470.07319.97
7.0.50.0400.09320.32
7.0.40.0030.08720.05
7.0.30.0100.08720.09
7.0.20.0100.05320.10
7.0.10.0070.07720.02
7.0.00.0170.08020.02
5.6.280.0000.07720.91
5.6.240.0070.08020.52
5.6.230.0030.06320.63
5.6.220.0070.06720.68
5.6.210.0000.04020.56
5.6.200.0070.04021.04
5.6.190.0130.08021.05
5.6.180.0100.05021.12
5.6.170.0030.08721.18
5.6.160.0100.05021.04
5.6.150.0070.08721.09
5.6.140.0100.05721.01
5.6.130.0170.08021.08
5.6.120.0030.07021.09
5.6.110.0070.04321.00
5.6.100.0100.07721.04
5.6.90.0000.04721.05
5.6.80.0030.07720.55
5.6.70.0130.08720.34
5.6.60.0100.05020.31
5.6.50.0130.06720.39
5.6.40.0070.06320.53
5.6.30.0130.07320.47
5.6.20.0100.03020.38
5.6.10.0070.06020.39
5.6.00.0100.06720.36
5.5.380.0130.07320.42
5.5.370.0100.07020.36
5.5.360.0100.03020.40
5.5.350.0070.07720.35
5.5.340.0000.04320.93
5.5.330.0030.03720.78
5.5.320.0130.06320.91
5.5.310.0030.08320.75
5.5.300.0170.07020.83
5.5.290.0030.09320.80
5.5.280.0030.04720.92
5.5.270.0070.08320.85
5.5.260.0030.05020.77
5.5.250.0070.04720.67
5.5.240.0030.03720.18
5.5.230.0070.04720.15
5.5.220.0130.09020.20
5.5.210.0200.08020.24
5.5.200.0130.07319.97
5.5.190.0130.03720.11
5.5.180.0070.06020.21
5.5.160.0070.06720.13
5.5.150.0030.04320.27
5.5.140.0000.07720.15
5.5.130.0000.04020.08
5.5.120.0000.04020.23
5.5.110.0000.03719.95
5.5.100.0130.02720.02
5.5.90.0100.03320.04
5.5.80.0130.08020.13
5.5.70.0130.03720.15
5.5.60.0070.04020.00
5.5.50.0070.03320.00
5.5.40.0030.05720.13
5.5.30.0030.04020.05
5.5.20.0170.07320.13
5.5.10.0070.03720.00
5.5.00.0070.04020.08
5.4.450.0170.09019.49
5.4.440.0070.07319.39
5.4.430.0170.06319.45
5.4.420.0170.05019.53
5.4.410.0030.03719.09
5.4.400.0100.07718.95
5.4.390.0130.05719.18
5.4.380.0030.03719.09
5.4.370.0130.05318.89
5.4.360.0100.04319.09
5.4.350.0030.07719.04
5.4.340.0170.02719.04
5.4.320.0070.05319.03
5.4.310.0070.03319.05
5.4.300.0130.07719.16
5.4.290.0130.03019.04
5.4.280.0070.07718.87
5.4.270.0030.03319.18
5.4.260.0000.06018.90
5.4.250.0030.06319.12
5.4.240.0070.04018.84
5.4.230.0070.03719.20
5.4.220.0000.04319.16
5.4.210.0030.04019.09
5.4.200.0030.03319.05
5.4.190.0070.03319.11
5.4.180.0130.03018.84
5.4.170.0030.06319.22
5.4.160.0170.02319.16
5.4.150.0100.03319.01
5.4.140.0070.07016.37
5.4.130.0030.08016.28
5.4.120.0070.07316.44
5.4.110.0000.04716.43
5.4.100.0070.05716.47
5.4.90.0000.04016.27
5.4.80.0030.05016.25
5.4.70.0170.06316.49
5.4.60.0170.06716.45
5.4.50.0100.06016.36
5.4.40.0070.04316.45
5.4.30.0030.07716.43
5.4.20.0030.07716.40
5.4.10.0100.05716.44
5.4.00.0100.07015.80
5.3.290.0100.06014.69
5.3.280.0030.04014.59
5.3.270.0000.07014.58
5.3.260.0000.04014.66
5.3.250.0000.07314.66
5.3.240.0030.07314.57
5.3.230.0070.03014.52
5.3.220.0070.04014.68
5.3.210.0100.07014.63
5.3.200.0070.08014.65
5.3.190.0030.04014.61
5.3.180.0030.07714.53
5.3.170.0070.07314.70
5.3.160.0070.04314.62
5.3.150.0070.07314.62
5.3.140.0170.05314.60
5.3.130.0000.07714.48
5.3.120.0100.07014.68
5.3.110.0200.06014.61
5.3.100.0070.07014.10
5.3.90.0070.03313.99
5.3.80.0070.05314.00
5.3.70.0100.06314.07
5.3.60.0030.06014.14
5.3.50.0130.04314.04
5.3.40.0070.08013.95
5.3.30.0030.05013.92
5.3.20.0000.04713.82
5.3.10.0170.05713.77
5.3.00.0130.04713.64
5.2.170.0030.06711.14
5.2.160.0000.05011.20
5.2.150.0100.05311.20
5.2.140.0030.06711.14
5.2.130.0070.02710.99
5.2.120.0030.03711.24
5.2.110.0170.05011.13
5.2.100.0100.04711.16
5.2.90.0070.05710.96
5.2.80.0030.05711.14
5.2.70.0070.06011.12
5.2.60.0030.04311.10
5.2.50.0030.03011.04
5.2.40.0000.04310.99
5.2.30.0000.05311.04
5.2.20.0030.03010.90
5.2.10.0070.02710.95
5.2.00.0000.03310.86
5.1.60.0100.02010.05
5.1.50.0000.0309.84
5.1.40.0000.03010.07
5.1.30.0030.02710.42
5.1.20.0000.02710.41
5.1.10.0070.0239.91
5.1.00.0070.02310.05
5.0.50.0000.0208.53
5.0.40.0070.0278.46
5.0.30.0030.0308.34
5.0.20.0000.0238.20
5.0.10.0000.0238.24
5.0.00.0000.0338.14
4.4.90.0030.0337.40
4.4.80.0000.0237.40
4.4.70.0030.0137.40
4.4.60.0000.0177.40
4.4.50.0000.0307.40
4.4.40.0030.0237.40
4.4.30.0000.0177.40
4.4.20.0000.0177.40
4.4.10.0000.0177.40
4.4.00.0030.0237.40
4.3.110.0000.0207.40
4.3.100.0000.0377.40
4.3.90.0000.0177.40
4.3.80.0030.0237.40
4.3.70.0030.0237.40
4.3.60.0030.0177.40
4.3.50.0000.0177.40
4.3.40.0000.0377.40
4.3.30.0030.0307.40
4.3.20.0030.0137.40
4.3.10.0000.0177.40
4.3.00.0000.0277.40

preferences:
43.4 ms | 400 KiB | 5 Q