3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $foo = null; public function __construct($foo) { $this->foo = $foo; } public function method() { var_dump($this->foo); } } (new foo)->method();

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.0110.01116.63
8.3.50.0240.00521.21
8.3.40.0070.00718.92
8.3.30.0080.00618.71
8.3.20.0050.00220.22
8.3.10.0000.00823.69
8.3.00.0060.00323.70
8.2.180.0070.01118.54
8.2.170.0130.00718.89
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0090.00624.66
8.2.130.0080.00021.00
8.2.120.0040.00426.35
8.2.110.0060.00321.00
8.2.100.0070.00417.91
8.2.90.0040.00419.08
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0070.00422.39
8.2.30.0040.00420.49
8.2.20.0060.00317.74
8.2.10.0000.00718.08
8.2.00.0000.00817.98
8.1.280.0110.00725.92
8.1.270.0080.00022.15
8.1.260.0000.00828.09
8.1.250.0030.01028.09
8.1.240.0110.00422.53
8.1.230.0060.00617.70
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0030.00518.65
8.1.160.0000.00720.54
8.1.150.0030.00718.75
8.1.140.0000.00919.44
8.1.130.0070.00017.51
8.1.120.0000.00717.38
8.1.110.0000.00917.22
8.1.100.0040.00417.35
8.1.90.0000.00717.34
8.1.80.0000.00817.30
8.1.70.0000.00717.25
8.1.60.0040.00417.46
8.1.50.0000.00917.41
8.1.40.0040.00417.45
8.1.30.0050.00317.59
8.1.20.0080.00017.48
8.1.10.0080.00017.53
8.1.00.0040.00417.39
8.0.300.0070.00018.77
8.0.290.0030.00616.63
8.0.280.0070.00018.44
8.0.270.0040.00417.13
8.0.260.0060.00017.10
8.0.250.0000.00716.99
8.0.240.0000.00716.95
8.0.230.0100.00016.93
8.0.220.0040.00416.93
8.0.210.0030.00316.84
8.0.200.0000.00616.91
8.0.190.0050.00316.91
8.0.180.0000.00716.77
8.0.170.0040.00416.94
8.0.160.0050.00216.94
8.0.150.0000.00816.85
8.0.140.0000.00716.85
8.0.130.0030.00313.19
8.0.120.0030.00516.88
8.0.110.0000.00716.73
8.0.100.0000.00716.68
8.0.90.0000.00816.86
8.0.80.0070.00716.77
8.0.70.0040.00416.71
8.0.60.0000.00716.95
8.0.50.0070.00016.84
8.0.30.0130.00816.96
8.0.20.0090.01017.40
8.0.10.0000.00716.93
8.0.00.0060.01216.79
7.4.330.0000.00516.71
7.4.320.0070.00016.50
7.4.300.0060.00016.42
7.4.290.0040.00416.43
7.4.280.0000.00916.42
7.4.270.0000.00716.43
7.4.260.0040.00416.32
7.4.250.0030.00316.39
7.4.240.0020.00516.48
7.4.230.0070.00016.45
7.4.220.0140.01016.34
7.4.210.0100.00616.63
7.4.200.0070.00016.63
7.4.160.0060.01016.53
7.4.150.0100.00717.40
7.4.140.0150.00317.86
7.4.130.0100.00816.66
7.4.120.0080.00916.43
7.4.110.0060.01216.41
7.4.100.0100.00716.63
7.4.90.0130.00316.40
7.4.80.0100.00619.39
7.4.70.0080.01716.30
7.4.60.0120.01216.52
7.4.50.0030.01316.36
7.4.40.0100.00716.59
7.4.30.0100.00716.50
7.4.00.0090.00715.01
7.3.330.0050.00013.38
7.3.320.0030.00313.34
7.3.310.0000.00716.40
7.3.300.0070.00016.13
7.3.290.0090.00816.33
7.3.280.0080.00916.32
7.3.270.0130.00417.40
7.3.260.0090.00616.48
7.3.250.0070.01116.48
7.3.240.0050.01216.44
7.3.230.0060.01016.48
7.3.210.0100.01016.36
7.3.200.0130.00316.38
7.3.190.0140.00616.52
7.3.180.0070.01416.27
7.3.170.0120.00616.38
7.3.160.0030.01316.52
7.3.120.0070.00714.65
7.3.110.0050.01114.69
7.3.100.0060.00914.64
7.3.90.0050.00914.46
7.3.80.0050.00514.89
7.3.70.0110.00214.46
7.3.60.0080.00514.53
7.3.50.0060.00614.50
7.3.40.0060.00614.70
7.3.30.0050.00714.76
7.3.20.0080.00616.63
7.3.10.0020.01016.39
7.3.00.0080.00616.62
7.2.330.0070.01116.74
7.2.320.0140.00316.51
7.2.310.0100.01416.72
7.2.300.0090.00916.35
7.2.290.0120.00416.73
7.2.250.0030.01614.80
7.2.240.0070.01014.63
7.2.230.0090.00514.94
7.2.220.0040.00814.85
7.2.210.0080.00614.91
7.2.200.0070.00814.91
7.2.190.0050.00814.65
7.2.180.0050.00914.90
7.2.170.0070.00914.92
7.2.160.0130.00314.76
7.2.150.0140.00016.82
7.2.140.0000.01216.80
7.2.130.0040.00816.59
7.2.120.0070.01016.58
7.2.110.0040.01116.66
7.2.100.0000.01616.81
7.2.90.0000.01116.63
7.2.80.0000.01516.41
7.2.70.0000.01616.70
7.2.60.0040.01116.67
7.2.50.0070.00716.82
7.2.40.0000.01616.45
7.2.30.0100.00716.84
7.2.20.0090.00916.88
7.2.10.0000.01516.87
7.2.00.0020.00817.87
7.1.330.0070.00815.68
7.1.320.0060.00915.63
7.1.310.0080.00315.71
7.1.300.0030.01015.57
7.1.290.0050.01015.48
7.1.280.0070.00715.44
7.1.270.0020.01215.55
7.1.260.0050.00915.61
7.1.250.0090.00615.64
7.1.200.0030.01015.60
7.1.100.0040.01117.94
7.1.70.0100.00016.91
7.1.60.0040.02119.52
7.1.50.0090.01216.82
7.1.00.0130.06722.30
7.0.200.0000.01416.65
7.0.60.0070.08319.93
7.0.50.0100.03717.87
7.0.40.0100.08320.24
7.0.30.0170.04720.08
7.0.20.0370.08020.16
7.0.10.0030.04720.25
7.0.00.0030.08320.07
5.6.280.0000.07721.16
5.6.210.0130.07320.61
5.6.200.0070.08318.16
5.6.190.0000.08320.67
5.6.180.0230.04020.69
5.6.170.0330.05720.48
5.6.160.0030.04720.54
5.6.150.0070.04018.18
5.6.140.0130.07318.23
5.6.130.0200.07318.15
5.6.120.0000.07321.12
5.6.110.0000.09021.00
5.6.100.0230.07320.98
5.6.90.0100.05320.98
5.6.80.0100.07320.34
5.5.350.3870.03320.52
5.5.340.0070.04317.99
5.5.330.0070.08720.21
5.5.320.0400.04720.35
5.5.310.0170.04720.50
5.5.300.0100.07317.93
5.5.290.0100.08317.95
5.5.280.0200.06020.83
5.5.270.0030.04020.73
5.5.260.0070.04020.84
5.5.250.0130.06020.61
5.5.240.0130.06720.07

preferences:
36.65 ms | 401 KiB | 5 Q