3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); // so only PHP 7 will show up class FooBar { private $x; public function __construct() { var_dump($this); echo "Let's remove a property!", PHP_EOL; unset($this->x); var_dump($this); echo "Let's add a property!", PHP_EOL; $this->x = 2; var_dump($this); echo "Where did the private come from?", PHP_EOL; } } $foobar = new Foobar;

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.0120.00916.50
8.3.50.0140.00521.99
8.3.40.0150.00318.66
8.3.30.0120.00618.62
8.3.20.0040.00420.07
8.3.10.0040.00423.43
8.3.00.0040.00419.38
8.2.180.0100.01016.63
8.2.170.0110.00422.96
8.2.160.0110.00720.42
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00420.47
8.2.120.0080.00026.35
8.2.110.0030.00619.27
8.2.100.0060.00617.50
8.2.90.0030.00519.18
8.2.80.0040.00417.97
8.2.70.0060.00317.37
8.2.60.0050.00317.80
8.2.50.0000.00918.07
8.2.40.0030.00619.46
8.2.30.0040.00420.55
8.2.20.0030.00617.50
8.2.10.0000.00718.04
8.2.00.0040.00417.98
8.1.280.0000.01725.92
8.1.270.0150.00323.83
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0080.00022.81
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0080.00018.46
8.1.160.0000.00721.82
8.1.150.0000.00818.81
8.1.140.0000.00819.42
8.1.130.0070.00017.68
8.1.120.0030.00417.41
8.1.110.0000.00817.45
8.1.100.0000.00817.36
8.1.90.0030.00717.26
8.1.80.0040.00317.38
8.1.70.0000.00717.33
8.1.60.0030.00917.58
8.1.50.0030.00517.50
8.1.40.0000.01017.44
8.1.30.0060.00317.68
8.1.20.0040.00417.48
8.1.10.0070.00017.59
8.1.00.0000.00817.39
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0030.00318.45
8.0.270.0030.00517.25
8.0.260.0000.00617.16
8.0.250.0000.00616.93
8.0.240.0030.00516.79
8.0.230.0030.00316.82
8.0.220.0000.00716.84
8.0.210.0040.00416.70
8.0.200.0030.00316.83
8.0.190.0030.00516.89
8.0.180.0000.00916.86
8.0.170.0030.00616.74
8.0.160.0040.00416.79
8.0.150.0000.00716.72
8.0.140.0040.00416.82
8.0.130.0030.00313.27
8.0.120.0000.00916.81
8.0.110.0020.00516.67
8.0.100.0040.00416.79
8.0.90.0040.00416.64
8.0.80.0070.00716.82
8.0.70.0050.00316.85
8.0.60.0070.00016.63
8.0.50.0000.00716.84
8.0.30.0140.00517.21
8.0.20.0170.00917.40
8.0.10.0040.00417.01
8.0.00.0070.01116.68
7.4.330.0050.00016.79
7.4.320.0030.00316.38
7.4.300.0030.00316.60
7.4.290.0030.00316.57
7.4.280.0060.00316.59
7.4.270.0000.00716.55
7.4.260.0030.00616.56
7.4.250.0040.00416.46
7.4.240.0050.00216.53
7.4.230.0040.00416.68
7.4.220.0100.01416.62
7.4.210.0020.01516.48
7.4.200.0070.00016.39
7.4.160.0030.01216.42
7.4.150.0120.00817.40
7.4.140.0060.01117.86
7.4.130.0150.00616.54
7.4.120.0110.00816.60
7.4.110.0110.00516.33
7.4.100.0090.01216.35
7.4.90.0080.00816.48
7.4.80.0140.00319.39
7.4.70.0090.00616.35
7.4.60.0070.01016.46
7.4.50.0030.01416.45
7.4.40.0080.00816.33
7.4.30.0070.01016.33
7.4.00.0070.01014.81
7.3.330.0030.00313.32
7.3.320.0000.00613.30
7.3.310.0000.00716.19
7.3.300.0000.00616.13
7.3.290.0000.00616.25
7.3.280.0050.01116.30
7.3.270.0150.00817.40
7.3.260.0150.00416.56
7.3.250.0100.00816.46
7.3.240.0060.01216.45
7.3.230.0130.00416.39
7.3.210.0150.00716.57
7.3.200.0140.00416.55
7.3.190.0100.00616.61
7.3.180.0080.00816.50
7.3.170.0030.02016.37
7.3.160.0110.00516.53
7.3.120.0070.01314.32
7.3.110.0000.01214.73
7.3.100.0080.00314.97
7.3.90.0070.00714.64
7.3.80.0070.01014.52
7.3.70.0060.00614.63
7.3.60.0030.00914.79
7.3.50.0100.00314.75
7.3.40.0040.01114.70
7.3.30.0060.00314.67
7.3.20.0100.00316.55
7.3.10.0110.00616.73
7.3.00.0030.00816.53
7.2.330.0000.01916.54
7.2.320.0110.00716.80
7.2.310.0120.00616.51
7.2.300.0060.01416.34
7.2.290.0110.00716.63
7.2.250.0070.01314.95
7.2.240.0060.01315.18
7.2.230.0030.01314.98
7.2.220.0060.00615.18
7.2.210.0070.00314.95
7.2.200.0070.00714.93
7.2.190.0100.00314.85
7.2.180.0080.00814.79
7.2.170.0030.00715.04
7.2.130.0090.00616.93
7.2.120.0040.01116.93
7.2.110.0030.00916.82
7.2.100.0120.00617.02
7.2.90.0000.00916.92
7.2.80.0060.00316.97
7.2.70.0000.00916.86
7.2.60.0060.00416.89
7.2.50.0000.01617.07
7.2.40.0100.00317.13
7.2.30.0070.00716.82
7.2.20.0160.00316.73
7.2.10.0060.00616.96
7.2.00.0130.00518.04
7.1.330.0070.00715.50
7.1.320.0080.00815.71
7.1.310.0040.01215.78
7.1.300.0060.00315.64
7.1.290.0030.01315.51
7.1.280.0090.00415.48
7.1.270.0050.00515.61
7.1.260.0040.01115.65
7.1.250.0090.00615.79
7.1.200.0030.00615.52
7.1.100.0040.00818.12
7.1.70.0030.01216.93
7.1.60.0100.01619.36
7.1.50.0060.01216.99
7.1.00.0030.07722.33
7.0.200.0030.00616.52
7.0.60.0170.08319.88
7.0.50.0100.06017.83
7.0.40.0070.05020.15
7.0.30.0400.06720.07
7.0.20.0330.08020.10
7.0.10.0030.04320.23
7.0.00.0100.05320.09
5.6.280.0000.07320.91
5.6.210.0030.04320.70
5.6.200.0070.08018.16
5.6.190.0130.07320.57
5.6.180.0630.06320.48
5.6.170.0230.05020.71
5.6.160.0100.03720.46
5.6.150.0130.07718.23
5.6.140.0100.07718.23
5.6.130.0070.05318.29
5.6.120.0100.08721.01
5.6.110.0070.04321.11
5.6.100.0100.04721.11
5.6.90.0070.08321.00
5.6.80.0100.03320.52
5.5.350.0230.07320.30
5.5.340.0070.04017.98
5.5.330.0100.03720.35
5.5.320.0200.07320.33
5.5.310.0300.08320.35
5.5.300.0100.03317.95
5.5.290.0070.04717.92
5.5.280.0130.08020.90
5.5.270.0130.07720.89
5.5.260.0200.07020.77
5.5.250.0170.04720.68
5.5.240.0230.06020.27

preferences:
46.14 ms | 401 KiB | 5 Q