3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; protected $foobar; public $mybar; public function getBar() { return $this->bar; } } var_dump(json_encode(new Foo));

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.0060.00918.27
8.3.50.0170.00221.15
8.3.40.0120.00318.38
8.3.30.0070.00720.20
8.3.20.0110.00420.13
8.3.10.0080.00022.11
8.3.00.0070.00022.51
8.2.180.0140.00716.50
8.2.170.0090.00622.96
8.2.160.0100.00320.18
8.2.150.0030.00624.18
8.2.140.0030.01324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.54
8.2.110.0000.00922.13
8.2.100.0090.00319.34
8.2.90.0000.01119.00
8.2.80.0030.00519.21
8.2.70.0000.00917.25
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0050.00318.09
8.2.30.0070.00017.82
8.2.20.0060.00317.47
8.2.10.0080.00017.63
8.2.00.0040.00417.55
8.1.280.0070.00725.92
8.1.270.0000.00820.18
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.92
8.1.230.0060.00619.21
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0060.00317.04
8.1.180.0000.00818.63
8.1.170.0000.00818.59
8.1.160.0070.00022.09
8.1.150.0070.00418.43
8.1.140.0040.00417.20
8.1.130.0030.00517.78
8.1.120.0030.00417.25
8.1.110.0000.00717.32
8.1.100.0070.00017.37
8.1.90.0050.00317.23
8.1.80.0000.00717.39
8.1.70.0000.00717.21
8.1.60.0040.00417.35
8.1.50.0000.00717.30
8.1.40.0000.00717.39
8.1.30.0040.00417.49
8.1.20.0080.00017.44
8.1.10.0040.00417.31
8.1.00.0000.00917.39
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0040.00418.30
8.0.270.0000.00817.15
8.0.260.0000.00616.77
8.0.250.0030.00316.88
8.0.240.0000.00816.81
8.0.230.0030.00516.88
8.0.220.0000.00816.70
8.0.210.0030.00316.80
8.0.200.0030.00316.70
8.0.190.0030.00616.79
8.0.180.0030.00516.77
8.0.170.0030.00616.82
8.0.160.0000.00716.87
8.0.150.0030.00316.61
8.0.140.0040.00416.71
8.0.130.0060.00013.23
8.0.120.0000.00816.64
8.0.110.0040.00416.75
8.0.100.0030.00516.82
8.0.90.0040.00416.81
8.0.80.0000.01616.70
8.0.70.0000.00816.62
8.0.60.0080.00016.83
8.0.50.0040.00416.88
8.0.30.0070.01216.91
8.0.20.0100.01017.40
8.0.10.0040.00416.87
8.0.00.0090.01216.63
7.4.330.0000.00515.00
7.4.320.0030.00316.39
7.4.300.0000.00616.39
7.4.290.0030.00316.50
7.4.280.0000.00716.32
7.4.270.0000.00716.41
7.4.260.0000.00716.35
7.4.250.0070.00016.36
7.4.240.0050.00216.41
7.4.230.0000.00716.58
7.4.220.0070.01116.35
7.4.210.0080.00816.41
7.4.200.0080.00016.46
7.4.190.0000.00716.37
7.4.160.0000.01616.25
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0090.00816.43
7.4.120.0110.00616.40
7.4.110.0090.00916.44
7.4.100.0180.00616.22
7.4.90.0070.01016.52
7.4.80.0060.01219.39
7.4.70.0120.00416.45
7.4.60.0110.00616.31
7.4.50.0080.00016.23
7.4.40.0150.00322.77
7.4.30.0120.00916.36
7.4.00.0120.00614.89
7.3.330.0020.00213.13
7.3.320.0050.00013.04
7.3.310.0040.00416.16
7.3.300.0060.00016.04
7.3.290.0000.01416.17
7.3.280.0080.00716.22
7.3.270.0100.01317.40
7.3.260.0030.01316.25
7.3.250.0090.00716.21
7.3.240.0120.01016.05
7.3.230.0000.01716.46
7.3.210.0130.00316.43
7.3.200.0090.00619.39
7.3.190.0130.00316.16
7.3.180.0090.00616.32
7.3.170.0080.00816.27
7.3.160.0030.01416.47
7.3.120.0060.00614.92
7.2.330.0110.00716.46
7.2.320.0130.01016.31
7.2.310.0100.00716.55
7.2.300.0080.00816.27
7.2.290.0100.00716.63
7.2.00.0030.01019.28
7.1.100.0080.00417.55
7.1.70.0000.00816.82
7.1.60.0100.00719.29
7.1.50.0070.01416.77
7.1.00.0070.03022.27
7.0.200.0000.00716.71
7.0.140.0030.06722.09
7.0.90.0530.05019.82
7.0.80.0630.07319.96
7.0.70.0470.05319.89
7.0.60.0500.07019.88
7.0.50.0570.08020.32
7.0.40.0100.08320.12
7.0.30.0000.09320.08
7.0.20.0070.08020.04
7.0.10.0100.04320.09
7.0.00.0030.08720.17
5.6.280.0030.07321.13
5.6.240.0100.07320.53
5.6.230.0030.07720.72
5.6.220.0270.06720.61
5.6.210.0100.07720.57
5.6.200.0030.08720.95
5.6.190.0030.05321.03
5.6.180.0070.05021.03
5.6.170.0030.05021.00
5.6.160.0070.08021.08
5.6.150.0100.05721.05
5.6.140.0030.07721.11
5.6.130.0030.09021.13
5.6.120.0000.08720.93
5.6.110.0200.04021.03
5.6.100.0000.08321.15
5.6.90.0100.04320.99
5.6.80.0100.06720.42
5.6.70.0070.08320.34
5.6.60.0030.04720.44
5.6.50.0070.08020.45
5.6.40.0070.08020.46
5.6.30.0030.04020.38
5.6.20.0100.07320.38
5.6.10.0070.05720.52
5.6.00.0130.07320.36
5.5.380.0100.07320.41
5.5.370.0070.04020.56
5.5.360.0070.07320.41
5.5.350.0070.05020.46
5.5.340.0000.05720.89
5.5.330.0100.08020.76
5.5.320.0170.07320.80
5.5.310.0030.08320.85
5.5.300.0070.08720.82
5.5.290.0070.08320.78
5.5.280.0030.04720.80
5.5.270.0070.09020.79
5.5.260.0100.04320.91
5.5.250.0130.07320.73
5.5.240.0170.07320.32
5.5.230.0100.07020.15
5.5.220.0000.05320.16
5.5.210.0200.06720.28
5.5.200.0070.08020.22
5.5.190.0070.06720.08
5.5.180.0070.04320.17
5.5.160.0130.03320.13
5.5.150.0070.08320.13
5.5.140.0170.05320.23
5.5.130.0000.08720.11
5.5.120.0100.06720.18
5.5.110.0130.07720.10
5.5.100.0100.08320.02
5.5.90.0070.07320.16
5.5.80.0030.05320.10
5.5.70.0070.04020.07
5.5.60.0000.03720.16
5.5.50.0030.04020.11
5.5.40.0070.03320.06
5.5.30.0030.04020.08
5.5.20.0030.06020.08
5.5.10.0030.04320.10
5.5.00.0030.04020.01
5.4.450.0030.07319.41
5.4.440.0170.06719.45
5.4.430.0000.05719.53
5.4.420.0130.04319.17
5.4.410.0100.06319.36
5.4.400.0030.07718.88
5.4.390.0130.07019.14
5.4.380.0170.06319.18
5.4.370.0030.07019.04
5.4.360.0070.08019.23
5.4.350.0000.07719.03
5.4.340.0070.04019.18
5.4.320.0030.07718.95
5.4.310.0000.08719.03
5.4.300.0170.04719.04
5.4.290.0030.06019.23
5.4.280.0100.07319.04
5.4.270.0200.06019.23
5.4.260.0030.05019.03
5.4.250.0130.06719.12
5.4.240.0170.06318.95
5.4.230.0100.03319.02
5.4.220.0030.04019.12
5.4.210.0130.05719.17
5.4.200.0030.03719.02
5.4.190.0030.06318.89
5.4.180.0100.02718.84
5.4.170.0000.04018.93
5.4.160.0100.06719.12
5.4.150.0100.06319.10
5.4.140.0100.03316.41
5.4.130.0070.03016.38
5.4.120.0130.02316.39
5.4.110.0030.04316.50
5.4.100.0000.04016.33
5.4.90.0030.06316.41
5.4.80.0000.03716.40
5.4.70.0100.06016.30
5.4.60.0030.07016.35
5.4.50.0000.04016.46
5.4.40.0100.03016.52
5.4.30.0000.03716.36
5.4.20.0070.03016.41
5.4.10.0070.03316.31
5.4.00.0000.03715.79
5.3.290.0100.07014.59
5.3.280.0100.06014.54
5.3.270.0070.03314.71
5.3.260.0000.06014.55
5.3.250.0030.03714.59
5.3.240.0030.03714.60
5.3.230.0000.03714.59
5.3.220.0130.05014.51
5.3.210.0100.04314.69
5.3.200.0070.03014.58
5.3.190.0030.03714.63
5.3.180.0030.03714.55
5.3.170.0000.04014.49
5.3.160.0100.03014.48
5.3.150.0130.03014.56
5.3.140.0030.04714.47
5.3.130.0070.03714.56
5.3.120.0000.04014.49
5.3.110.0070.03314.56
5.3.100.0070.03714.04
5.3.90.0000.03713.98
5.3.80.0070.03013.95
5.3.70.0030.03714.11
5.3.60.0030.03714.02
5.3.50.0000.03713.97
5.3.40.0070.04314.05
5.3.30.0100.02713.88
5.3.20.0030.06013.59
5.3.10.0000.03713.79
5.3.00.0030.03313.73
5.2.170.0070.05011.21
5.2.160.0000.03011.20
5.2.150.0030.03711.26
5.2.140.0000.04711.05
5.2.130.0000.04311.13
5.2.120.0000.03011.21
5.2.110.0000.03311.16
5.2.100.0000.02711.12
5.2.90.0100.02011.23
5.2.80.0030.02711.19
5.2.70.0000.03711.10
5.2.60.0000.03311.06
5.2.50.0070.02010.92
5.2.40.0070.03011.13
5.2.30.0030.03010.88
5.2.20.0000.02710.94
5.2.10.0000.03310.68
5.2.00.0030.05010.62
5.1.60.0000.03710.05
5.1.50.0000.0239.98
5.1.40.0030.03710.08
5.1.30.0030.03310.25
5.1.20.0000.02710.37
5.1.10.0030.02710.07
5.1.00.0030.02310.14
5.0.50.0000.0208.53
5.0.40.0030.0438.47
5.0.30.0030.0538.29
5.0.20.0030.0378.29
5.0.10.0130.0378.01
5.0.00.0070.0608.15
4.4.90.0000.0137.16
4.4.80.0000.0177.16
4.4.70.0000.0177.16
4.4.60.0070.0107.16
4.4.50.0000.0137.16
4.4.40.0000.0237.16
4.4.30.0000.0377.16
4.4.20.0000.0307.16
4.4.10.0000.0177.16
4.4.00.0070.0307.16
4.3.110.0030.0377.16
4.3.100.0000.0407.16
4.3.90.0000.0277.16
4.3.80.0070.0507.16
4.3.70.0070.0337.16
4.3.60.0100.0277.16
4.3.50.0070.0237.16
4.3.40.0070.0507.16
4.3.30.0070.0277.16
4.3.20.0000.0377.16
4.3.10.0000.0277.16
4.3.00.0030.0337.16

preferences:
67.06 ms | 400 KiB | 5 Q