3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $v; public function __destruct() { echo "Hello there"; } } class B { public $v; public function __destruct() { echo " from the other side"; } } $a = new A(); $b = new B(); $a->v = $b; $b->v = $a; echo "Before exit\n"; exit(4);

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.4.120.0060.00220.48
8.4.110.0140.00718.92
8.4.100.0100.01118.85
8.4.90.0050.00420.83
8.4.80.0110.00818.87
8.4.70.0050.00418.14
8.4.60.0120.00818.75
8.4.50.0090.01018.86
8.4.40.0070.01417.71
8.4.30.0160.00318.67
8.4.20.0070.00419.52
8.4.10.0060.01019.71
8.3.250.0110.00818.67
8.3.240.0100.00916.84
8.3.230.0040.00316.55
8.3.220.0120.00618.92
8.3.210.0050.00616.57
8.3.200.0050.00416.50
8.3.190.0100.00919.09
8.3.180.0040.00517.02
8.3.170.0070.01420.66
8.3.160.0090.00917.22
8.3.150.0120.00617.43
8.3.140.0070.00316.72
8.3.130.0000.00916.54
8.3.120.0060.00319.15
8.3.110.0050.00320.94
8.3.100.0130.00618.60
8.3.90.0120.00326.77
8.3.80.0060.00317.97
8.3.70.0250.00717.97
8.3.60.0250.00717.97
8.3.50.0060.00618.46
8.3.40.0190.00517.97
8.3.30.0220.00517.97
8.3.20.0220.00717.97
8.3.10.0240.00317.97
8.3.00.0240.00317.97
8.2.290.0130.00620.64
8.2.280.0110.00918.55
8.2.270.0120.00617.20
8.2.260.0060.00318.47
8.2.250.0080.00016.73
8.2.240.0080.00018.88
8.2.230.0030.00622.58
8.2.220.0100.00324.06
8.2.210.0050.00326.77
8.2.200.0060.00616.75
8.2.190.0160.00817.97
8.2.180.0200.00317.97
8.2.170.0230.00917.97
8.2.160.0230.00317.97
8.2.150.0210.00417.97
8.2.140.0090.01517.97
8.2.130.0180.00417.97
8.2.120.0140.00817.97
8.2.110.0230.00317.97
8.2.100.0190.00317.97
8.2.90.0170.01317.97
8.2.80.0200.00817.97
8.2.70.0180.00917.97
8.2.60.0190.00617.97
8.2.50.0190.00417.97
8.2.40.0140.00717.97
8.2.30.0210.00017.97
8.2.20.0250.00017.97
8.2.10.0220.00417.97
8.2.00.0240.00017.97
8.1.330.0070.01121.72
8.1.320.0100.00817.79
8.1.310.0040.00416.48
8.1.300.0090.00018.16
8.1.290.0060.00330.84
8.1.280.0230.00417.97
8.1.270.0170.00717.97
8.1.260.0260.00017.97
8.1.250.0230.00617.97
8.1.240.0250.00817.97
8.1.230.0230.00317.97
8.1.220.0230.00317.97
8.1.210.0190.00917.97
8.1.200.0080.01217.97
8.1.190.0130.00817.97
8.1.180.0170.00317.97
8.1.170.0210.00017.97
8.1.160.0180.00417.97
8.1.150.0140.01117.97
8.1.140.0210.00017.97
8.1.130.0120.01217.97
8.1.120.0250.00017.97
8.1.110.0200.00517.97
8.1.100.0160.00617.97
8.1.90.0210.00218.88
8.1.80.0150.00417.97
8.1.70.0200.00317.97
8.1.60.0230.00017.97
8.1.50.0220.00017.97
8.1.40.0190.00317.97
8.1.30.0160.00517.97
8.1.20.0170.00617.97
8.1.10.0340.01017.97
8.1.00.0290.01317.97

preferences:
50.33 ms | 403 KiB | 5 Q