3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class extends \DOMDocument { private $foo; public function getFoo() { if ($this->foo !== null) { print "woohoo"; } } }; var_dump($a->getFoo());

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.70.0060.00918.33
8.3.60.0090.00618.30
8.3.50.0070.00717.95
8.3.40.0030.01318.45
8.3.30.0070.01418.73
8.3.20.0080.00019.14
8.3.10.0040.00421.73
8.3.00.0040.00423.38
8.2.190.0110.00716.58
8.2.180.0070.01018.41
8.2.170.0150.00022.96
8.2.160.0070.00719.05
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00818.09
8.2.120.0070.00026.35
8.2.110.0100.00022.42
8.2.100.0120.00017.91
8.2.90.0050.00517.49
8.2.80.0040.00417.97
8.2.70.0040.00417.67
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0060.00319.30
8.2.30.0000.00719.36
8.2.20.0000.00918.14
8.2.10.0000.00719.51
8.2.00.0090.00019.52
8.1.280.0050.00925.92
8.1.270.0080.00022.16
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0090.00318.98
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00818.91
8.1.160.0050.00218.81
8.1.150.0030.00519.02
8.1.140.0040.00419.42
8.1.130.0070.00018.94
8.1.120.0000.00717.43
8.1.110.0050.00317.41
8.1.100.0000.00717.42
8.1.90.0040.00417.50
8.1.80.0040.00417.43
8.1.70.0050.00317.50
8.1.60.0070.00717.61
8.1.50.0030.00517.50
8.1.40.0040.00417.48
8.1.30.0070.00017.69
8.1.20.0060.00317.61
8.1.10.0050.00317.48
8.1.00.0030.00617.34
8.0.300.0070.00019.64
8.0.290.0040.00416.88
8.0.280.0040.00418.34
8.0.270.0030.00317.35
8.0.260.0030.00317.16
8.0.250.0070.00016.90
8.0.240.0070.00017.04
8.0.230.0030.00516.88
8.0.220.0070.00016.93
8.0.210.0000.00816.88
8.0.200.0000.00716.98
8.0.190.0000.00716.91
8.0.180.0040.00416.88
8.0.170.0080.00016.94
8.0.160.0040.00316.89
8.0.150.0000.00916.82
8.0.140.0030.00316.91
8.0.130.0030.00313.38
8.0.120.0040.00416.82
8.0.110.0050.00316.88
8.0.100.0040.00416.96
8.0.90.0040.00416.91
8.0.80.0090.01016.84
8.0.70.0070.00016.94
8.0.60.0000.00717.07
8.0.50.0000.00716.73
8.0.30.0110.00817.10
8.0.20.0060.01617.40
8.0.10.0040.00416.88
8.0.00.0140.00716.70
7.4.330.0050.00015.55
7.4.320.0030.00316.59
7.4.300.0030.00316.55
7.4.290.0030.00316.50
7.4.280.0060.00316.64
7.4.270.0030.00316.42
7.4.260.0030.00316.57
7.4.250.0000.00816.45
7.4.240.0000.00716.43
7.4.230.0040.00416.40
7.4.220.0030.00516.68
7.4.210.0070.01016.57
7.4.200.0040.00416.48
7.4.160.0050.01216.57
7.4.140.0100.00817.86
7.4.130.0060.01316.52
7.4.120.0140.00616.61
7.4.110.0130.00316.73
7.4.100.0090.01216.49
7.4.90.0090.00916.54
7.4.80.0000.02219.39
7.4.70.0100.00616.42
7.4.60.0090.00616.55
7.4.50.0040.01116.49
7.4.40.0090.00816.49
7.4.00.0020.00515.15
7.3.330.0050.00013.20
7.3.320.0040.00413.30
7.3.310.0070.00016.33
7.3.300.0030.00316.38
7.3.290.0080.00016.30
7.3.280.0110.00516.26
7.3.260.0100.00816.36
7.3.240.0110.00816.35
7.3.230.0070.01016.22
7.3.210.0090.00816.40
7.3.200.0060.00916.32
7.3.190.0120.00416.45
7.3.180.0120.00616.54
7.3.170.0030.01416.21
7.3.160.0100.00716.59
7.3.10.0060.01016.47
7.3.00.0130.00416.38
7.2.330.0090.00916.77
7.2.320.0120.00616.52
7.2.310.0000.02416.66
7.2.300.0140.00816.57
7.2.290.0200.00316.80
7.2.130.0190.00616.84
7.2.120.0200.00616.61
7.2.110.0040.01117.04
7.2.100.0170.01016.68
7.2.90.0290.00716.83
7.2.80.0120.00916.96
7.2.70.0170.00916.03
7.2.60.0140.00915.96
7.2.50.0160.01216.03
7.2.40.0170.00715.83
7.2.30.0130.00916.02
7.2.20.0050.01315.94
7.2.10.0120.00915.91
7.2.00.0590.01015.93
7.1.250.0120.00815.57
7.1.200.0090.00315.84
7.1.170.0260.00313.93
7.1.160.0090.01313.98
7.1.150.0160.00813.93
7.1.140.0160.00913.64
7.1.130.0190.00913.64
7.1.120.0140.01113.95
7.1.110.0250.00314.06
7.1.100.0150.00614.07
7.1.90.0160.00613.84
7.1.80.0140.01013.81
7.1.70.0210.00914.01
7.1.60.0430.01331.91
7.1.50.0670.01031.87
7.1.40.0360.01931.70
7.1.30.0420.01331.77
7.1.20.0410.01331.68
7.1.10.0170.01413.75
7.1.00.0190.00913.81

preferences:
58.13 ms | 401 KiB | 5 Q