3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $arg1; private $arg2; public function __construct() { $this->arg1 = $this->arg2 = new DateTime; } public function tester() { var_dump($this->arg1, $this->arg2); } } $test = new Test; $test->tester();

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.01118.40
8.3.50.0030.01418.55
8.3.40.0150.00019.01
8.3.30.0150.00018.59
8.3.20.0030.00519.01
8.3.10.0050.00321.77
8.3.00.0000.00720.77
8.2.180.0070.01018.66
8.2.170.0130.00622.96
8.2.160.0070.01320.18
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00422.26
8.2.120.0080.00026.35
8.2.110.0060.00322.07
8.2.100.0040.00817.85
8.2.90.0060.00322.34
8.2.80.0060.00319.11
8.2.70.0050.00518.05
8.2.60.0000.00718.03
8.2.50.0000.00818.10
8.2.40.0000.00720.61
8.2.30.0040.00419.25
8.2.20.0040.00418.00
8.2.10.0000.00818.12
8.2.00.0000.00717.78
8.1.280.0090.01225.92
8.1.270.0000.00823.99
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0030.00723.76
8.1.230.0080.00422.69
8.1.220.0030.00517.74
8.1.210.0040.00418.85
8.1.200.0050.00317.48
8.1.190.0030.00617.38
8.1.180.0030.00518.10
8.1.170.0000.00820.75
8.1.160.0020.00518.77
8.1.150.0040.00420.21
8.1.140.0070.00019.51
8.1.130.0070.00017.86
8.1.120.0040.00417.55
8.1.110.0040.00417.48
8.1.100.0040.00417.54
8.1.90.0040.00417.62
8.1.80.0000.00717.56
8.1.70.0040.00417.44
8.1.60.0000.00817.68
8.1.50.0050.00317.66
8.1.40.0030.00617.68
8.1.30.0000.00817.71
8.1.20.0060.00317.76
8.1.10.0050.00317.65
8.1.00.0110.00017.67
8.0.300.0080.00019.96
8.0.290.0040.00416.75
8.0.280.0040.00418.41
8.0.270.0080.00017.29
8.0.260.0060.00017.27
8.0.250.0030.00317.06
8.0.240.0040.00417.11
8.0.230.0030.00317.07
8.0.220.0040.00417.07
8.0.210.0000.00716.91
8.0.200.0030.00316.97
8.0.190.0060.00316.98
8.0.180.0020.00517.01
8.0.170.0020.00516.89
8.0.160.0020.00516.95
8.0.150.0000.00716.85
8.0.140.0000.00717.04
8.0.130.0030.00313.31
8.0.120.0040.00416.98
8.0.110.0080.00016.91
8.0.100.0040.00416.91
8.0.90.0040.00416.93
8.0.80.0070.00717.02
8.0.70.0000.00717.02
8.0.60.0000.00716.87
8.0.50.0050.00316.80
8.0.30.0160.00217.23
8.0.20.0160.00817.40
8.0.10.0050.00217.01
8.0.00.0140.00316.92
7.4.330.0060.00015.55
7.4.320.0000.00616.64
7.4.300.0030.00316.58
7.4.290.0000.00716.62
7.4.280.0000.00816.77
7.4.270.0000.00616.64
7.4.260.0000.00916.70
7.4.250.0030.00316.59
7.4.240.0000.00716.74
7.4.230.0000.00716.64
7.4.220.0100.01416.70
7.4.210.0150.00616.82
7.4.200.0040.00416.74
7.4.160.0080.00816.61
7.4.150.0070.01017.40
7.4.140.0090.01117.86
7.4.130.0150.00516.58
7.4.120.0070.00916.56
7.4.110.0070.01016.66
7.4.100.0140.00816.56
7.4.90.0110.00816.55
7.4.80.0080.01419.39
7.4.70.0060.00916.39
7.4.60.0060.01016.50
7.4.50.0040.01116.52
7.4.40.0060.01016.64
7.4.30.0130.00416.66
7.4.00.0030.01415.04
7.3.330.0000.00513.24
7.3.320.0000.00613.47
7.3.310.0030.00316.46
7.3.300.0000.00716.32
7.3.290.0080.00616.43
7.3.280.0140.00916.47
7.3.270.0090.00817.40
7.3.260.0110.00716.52
7.3.250.0120.00916.50
7.3.240.0180.00616.52
7.3.230.0070.01016.47
7.3.210.0110.00716.66
7.3.200.0090.01016.48
7.3.190.0040.01316.52
7.3.180.0030.01316.86
7.3.170.0120.01216.80
7.3.160.0090.00916.72
7.3.10.0070.00716.38
7.3.00.0000.01416.84
7.2.330.0190.00016.50
7.2.320.0040.01416.58
7.2.310.0130.00316.53
7.2.300.0090.00916.46
7.2.290.0080.00816.68
7.2.130.0000.01116.93
7.2.120.0070.00717.05
7.2.110.0030.00717.06
7.2.100.0000.00916.95
7.2.90.0030.00717.00
7.2.80.0080.00316.84
7.2.70.0080.00016.83
7.2.60.0130.00717.09
7.2.50.0030.00916.87
7.2.40.0070.00717.08
7.2.30.0100.00317.21
7.2.20.0110.00417.05
7.2.10.0080.00417.13
7.2.00.0060.00618.23
7.1.250.0060.00615.89
7.1.200.0030.00715.90
7.1.70.0000.00717.07
7.1.60.0030.01017.32
7.1.50.0090.00617.06
7.1.00.0370.06320.59
7.0.200.0170.01016.76
7.0.130.0570.08020.29
7.0.120.0430.06720.20
7.0.110.0470.08320.42
7.0.100.0400.06720.33
7.0.90.0500.08020.15
7.0.80.1600.06720.27
7.0.70.0600.07720.15
7.0.60.0600.05320.27
7.0.50.0400.05720.34
7.0.40.0400.06020.29
7.0.30.0400.07320.20
7.0.20.0570.07020.21
7.0.10.0470.05720.30
7.0.00.0430.05720.12
5.6.280.0070.06321.07
5.6.270.0230.06320.93
5.6.260.0130.07320.96
5.6.250.0100.07020.77
5.6.240.0070.06720.98
5.6.230.0330.04020.97
5.6.220.0200.05020.96
5.6.210.0130.07320.96
5.6.200.0130.06020.78
5.6.190.0030.07321.04
5.6.180.0100.07320.92
5.6.170.0170.05721.00
5.6.160.0300.05021.07
5.6.150.0100.07320.87
5.6.140.0100.06321.04
5.6.130.0270.04321.02
5.6.120.0130.06320.86
5.6.110.0200.06020.96
5.6.100.0230.07021.02
5.6.90.0100.06320.83
5.6.80.0100.05320.30
5.6.70.0030.06020.29
5.6.60.0100.05320.25
5.6.50.0130.07320.28
5.6.40.0230.05020.18
5.6.30.0100.05720.44
5.6.20.0170.05020.43
5.6.10.0130.05020.41
5.6.00.0170.05020.29

preferences:
43.23 ms | 401 KiB | 5 Q