3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Subclass extends DateTimeImmutable { public function __construct() { parent::__construct(); var_dump("construc"); } } $foo = new Subclass('2023-01-01 12:12:13'); $foo2 = $foo->modify('+7 days'); /** @psalm-trace $foo2 */ echo get_class($foo2);

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.140.0000.00818.78
8.3.130.0060.00318.35
8.3.120.0030.00619.07
8.3.110.0050.00320.94
8.3.100.0080.00016.68
8.3.90.0110.00426.77
8.3.80.0060.00318.43
8.3.70.0120.00918.38
8.3.60.0080.00816.75
8.3.50.0150.00616.57
8.3.40.0070.00720.25
8.3.30.0180.00018.83
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.250.0140.00016.64
8.2.240.0060.00319.14
8.2.230.0080.00022.58
8.2.220.0030.00624.06
8.2.210.0080.00826.77
8.2.200.0040.00418.41
8.2.190.0090.00616.75
8.2.180.0000.01516.63
8.2.170.0170.00322.96
8.2.160.0110.00322.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00620.74
8.2.110.0000.00922.36
8.2.100.0060.00618.03
8.2.90.0080.00019.18
8.2.80.0040.00418.05
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0040.00422.32
8.2.30.0020.00518.18
8.2.20.0020.00519.24
8.2.10.0000.00718.03
8.2.00.0040.00520.80
8.1.300.0000.00818.41
8.1.290.0060.00330.84
8.1.280.0140.00425.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0060.00617.69
8.1.220.0080.00017.88
8.1.210.0040.00418.77
8.1.200.0030.00617.60
8.1.190.0030.00617.48
8.1.180.0090.00018.10
8.1.170.0000.00818.77
8.1.160.0070.00022.04
8.1.150.0040.00418.70
8.1.140.0050.00317.55
8.1.130.0060.00519.63
8.1.120.0070.00419.73
8.1.110.0080.00318.84
8.1.100.0090.00318.83
8.1.90.0090.00218.79
8.1.80.0090.00218.88
8.1.70.0060.00418.86
8.1.60.0090.00518.97
8.1.50.0110.00318.87
8.1.40.0120.00318.93
8.1.30.0120.00218.95
8.1.20.0110.00519.00
8.1.10.0130.00318.97
8.1.00.0110.00518.91
8.0.300.0060.00318.77
8.0.290.0000.00716.88
8.0.280.0070.00018.47
8.0.270.0070.00017.27
8.0.260.0060.00718.26
8.0.250.0100.00218.25
8.0.240.0060.00618.29
8.0.230.0090.00318.22
8.0.220.0000.01218.16
8.0.210.0060.00518.13
8.0.200.0150.00018.14
8.0.190.0030.01018.25
8.0.180.0100.00418.23
8.0.170.0090.00518.17
8.0.160.0100.00318.23
8.0.150.0090.00518.14
8.0.140.0070.00618.12
8.0.130.0080.00518.13
8.0.120.0100.00518.25
8.0.110.0090.00618.15
8.0.100.0080.00718.14
8.0.90.0120.00218.12
8.0.80.0140.00018.15
8.0.70.0020.01118.18
8.0.60.0090.00318.14
8.0.50.0100.00218.17
8.0.30.0070.00618.12
8.0.20.0120.00118.23
8.0.10.0090.00318.24

preferences:
27.71 ms | 403 KiB | 5 Q