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; var_dump($this); // It's gone! 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.0070.01116.61
8.3.50.0140.00521.92
8.3.40.0120.00318.66
8.3.30.0040.01118.71
8.3.20.0080.00020.19
8.3.10.0100.00323.48
8.3.00.0090.00019.20
8.2.180.0120.00416.38
8.2.170.0110.00422.96
8.2.160.0070.00720.34
8.2.150.0090.00624.18
8.2.140.0050.00324.66
8.2.130.0030.00620.39
8.2.120.0050.00226.35
8.2.110.0100.00019.13
8.2.100.0040.00817.63
8.2.90.0040.00419.21
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0050.00517.80
8.2.50.0040.00418.07
8.2.40.0080.00019.34
8.2.30.0070.00020.73
8.2.20.0030.00617.63
8.2.10.0040.00417.99
8.2.00.0000.00817.91
8.1.280.0140.00425.92
8.1.270.0080.00023.97
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0000.00924.02
8.1.230.0040.00717.78
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0050.00317.13
8.1.180.0060.00318.10
8.1.170.0040.00420.34
8.1.160.0040.00421.87
8.1.150.0050.00218.79
8.1.140.0040.00419.46
8.1.130.0030.00317.71
8.1.120.0040.00417.36
8.1.110.0030.00317.25
8.1.100.0050.00317.30
8.1.90.0000.00817.41
8.1.80.0000.00717.38
8.1.70.0040.00417.41
8.1.60.0060.00617.52
8.1.50.0040.00417.49
8.1.40.0030.00917.54
8.1.30.0040.00417.63
8.1.20.0000.00717.61
8.1.10.0070.00017.55
8.1.00.0000.00817.55
8.0.300.0030.00518.77
8.0.290.0050.00216.63
8.0.280.0030.00318.32
8.0.270.0030.00517.16
8.0.260.0000.00618.34
8.0.250.0000.00716.90
8.0.240.0030.00316.76
8.0.230.0000.00716.93
8.0.220.0050.00216.78
8.0.210.0040.00416.79
8.0.200.0040.00416.90
8.0.190.0000.00816.86
8.0.180.0000.00816.76
8.0.170.0040.00416.89
8.0.160.0040.00416.80
8.0.150.0050.00216.74
8.0.140.0000.00716.76
8.0.130.0000.00613.25
8.0.120.0000.00916.70
8.0.110.0040.00416.73
8.0.100.0070.00016.74
8.0.90.0000.00716.78
8.0.80.0070.00716.81
8.0.70.0030.00616.77
8.0.60.0080.00016.65
8.0.50.0000.00716.77
8.0.30.0110.00916.93
8.0.20.0130.01417.40
8.0.10.0000.00717.00
8.0.00.0110.00616.63
7.4.330.0000.00516.66
7.4.320.0070.00016.42
7.4.300.0030.00316.59
7.4.290.0000.00716.65
7.4.280.0060.00316.57
7.4.270.0070.00016.60
7.4.260.0030.00316.63
7.4.250.0030.00616.57
7.4.240.0020.00616.49
7.4.230.0030.00316.42
7.4.220.0100.01316.71
7.4.210.0030.01316.54
7.4.200.0040.00416.58
7.4.150.0100.01717.40
7.4.140.0090.01217.86
7.4.130.0100.00816.56
7.4.120.0090.00816.35
7.4.110.0130.00616.33
7.4.100.0120.00916.63
7.4.90.0090.00916.62
7.4.80.0080.00819.39
7.4.70.0130.00316.63
7.4.60.0170.00316.36
7.4.50.0000.01616.55
7.4.40.0060.01216.41
7.4.30.0090.00916.48
7.4.00.0060.00914.95
7.3.330.0060.00013.12
7.3.320.0000.00513.29
7.3.310.0030.00316.20
7.3.300.0040.00416.12
7.3.290.0070.00016.25
7.3.280.0050.01316.28
7.3.270.0110.00717.40
7.3.260.0140.00716.66
7.3.250.0120.00716.28
7.3.240.0130.01016.48
7.3.230.0090.00916.39
7.3.210.0120.00616.41
7.3.200.0080.00816.48
7.3.190.0130.00316.44
7.3.180.0100.00716.18
7.3.170.0170.00916.55
7.3.160.0120.00416.34
7.2.330.0030.01716.54
7.2.320.0070.01416.74
7.2.310.0100.00716.68
7.2.300.0110.00816.73
7.2.290.0140.00316.70
7.2.60.0220.00716.79
7.2.50.0070.00316.95
7.2.00.0040.01519.46
7.1.200.0000.01315.93
7.1.70.0040.00416.87
7.1.60.0070.01119.36
7.1.50.0170.00334.54
7.1.00.0070.07722.57
7.0.200.0000.00816.72
7.0.60.0000.08319.91
7.0.50.0000.04717.80
7.0.40.0100.08320.15
7.0.30.0430.07320.08
7.0.20.0330.05320.12
7.0.10.0100.03720.15
7.0.00.0100.04320.07
5.6.210.0070.04020.71
5.6.200.0030.04018.16
5.6.190.0100.07320.52
5.6.180.0470.06320.50
5.6.170.0300.07320.45
5.6.160.0030.09020.44
5.6.150.0000.08318.29
5.6.140.0100.08318.11
5.6.130.0170.07718.18
5.6.120.0070.08021.12
5.6.110.0030.08321.00
5.6.100.0100.07020.97
5.6.90.0130.08321.12
5.6.80.0100.07720.53
5.5.350.0270.06720.37
5.5.340.0070.08318.11
5.5.330.0100.08320.28
5.5.320.0130.04720.24
5.5.310.0330.03720.41
5.5.300.0130.04317.99
5.5.290.0030.06018.08
5.5.280.0130.04320.77
5.5.270.0100.05020.82
5.5.260.0070.05020.80
5.5.250.0070.08720.58
5.5.240.0230.06020.26

preferences:
42.27 ms | 401 KiB | 5 Q