3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $x; } $x = new Foo(); $x->x = $x; // comment this line out $y = new WeakRef($x); unset($x); var_dump($y->get()); gc_collect_cycles(); var_dump($y->get());

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.00418.43
8.3.50.0100.00318.20
8.3.40.0120.00318.96
8.3.30.0110.00418.91
8.3.20.0080.00019.08
8.3.10.0050.00321.62
8.3.00.0040.00419.81
8.2.180.0150.00016.75
8.2.170.0070.00722.96
8.2.160.0070.00720.38
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0040.00420.64
8.2.110.0000.01021.12
8.2.100.0040.00817.72
8.2.90.0000.00817.91
8.2.80.0040.00418.04
8.2.70.0030.00517.93
8.2.60.0050.00318.04
8.2.50.0030.00718.10
8.2.40.0070.00019.08
8.2.30.0040.00421.08
8.2.20.0050.00217.92
8.2.10.0040.00417.96
8.2.00.0030.00319.24
8.1.280.0040.01125.92
8.1.270.0030.00524.66
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.14
8.1.230.0060.00620.96
8.1.220.0000.00817.74
8.1.210.0040.00418.97
8.1.200.0040.00417.35
8.1.190.0090.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00718.39
8.1.160.0040.00418.80
8.1.150.0080.00018.82
8.1.140.0000.00917.39
8.1.130.0000.00719.02
8.1.120.0000.00817.37
8.1.110.0050.00317.38
8.1.100.0000.00717.32
8.1.90.0040.00417.33
8.1.80.0000.00717.38
8.1.70.0070.00417.30
8.1.60.0000.00817.56
8.1.50.0030.00617.54
8.1.40.0000.00817.54
8.1.30.0090.00017.56
8.1.20.0040.00417.71
8.1.10.0050.00217.46
8.1.00.0030.00517.39
8.0.300.0050.00319.77
8.0.290.0040.00416.63
8.0.280.0040.00418.32
8.0.270.0070.00017.06
8.0.260.0030.00617.11
8.0.250.0030.00316.94
8.0.240.0030.00317.05
8.0.230.0030.00316.90
8.0.220.0070.00016.85
8.0.210.0030.00316.86
8.0.200.0030.00316.89
8.0.190.0080.00016.94
8.0.180.0040.00416.91
8.0.170.0050.00316.80
8.0.160.0000.00716.85
8.0.150.0000.01016.86
8.0.140.0070.00016.80
8.0.130.0000.00613.31
8.0.120.0040.00416.85
8.0.110.0070.00016.95
8.0.100.0070.00016.90
8.0.90.0000.00717.00
8.0.80.0040.01116.84
8.0.70.0000.00816.71
8.0.60.0070.00016.92
8.0.50.0070.00016.82
8.0.30.0090.00917.09
8.0.20.0150.00517.40
8.0.10.0040.00416.86
8.0.00.0180.01216.66
7.4.330.0000.00515.55
7.4.320.0030.00316.55
7.4.300.0060.00016.55
7.4.290.0070.00016.42
7.4.280.0080.00016.59
7.4.270.0030.00316.60
7.4.260.0000.00716.59
7.4.250.0030.00316.57
7.4.240.0030.00316.36
7.4.230.0030.00316.62
7.4.220.0000.00816.35
7.4.210.0070.00716.61
7.4.200.0050.00316.43
7.4.160.0090.00816.42
7.4.140.0080.01217.86
7.4.130.0140.01016.56
7.4.120.0120.00716.50
7.4.110.0170.00016.37
7.4.100.0090.00916.36
7.4.90.0100.00616.40
7.4.80.0090.00919.39
7.4.70.0130.00616.60
7.4.60.0070.01016.50
7.4.50.0050.00716.63
7.4.40.0060.00916.54
7.4.00.0080.00815.08
7.3.330.0050.00013.39
7.3.320.0030.00313.29
7.3.310.0030.00516.41
7.3.300.0070.00016.24
7.3.290.0000.00716.37
7.3.280.0070.01016.32
7.3.260.0110.00716.47
7.3.240.0090.00816.39
7.3.230.0100.00716.45
7.3.210.0140.00716.50
7.3.200.0100.01016.50
7.3.190.0160.00316.59
7.3.180.0000.01516.37
7.3.170.0100.00716.29
7.3.160.0090.00916.33
7.2.330.0100.01016.63
7.2.320.0100.00716.74
7.2.310.0030.01516.52
7.2.300.0130.00416.68
7.2.290.0180.00416.55
7.2.60.0090.00316.71
7.2.40.2730.00917.80
7.2.30.2720.01017.93
7.2.20.3290.01017.90
7.2.10.3630.01318.09
7.2.00.3080.00817.65
7.1.200.0040.01115.85
7.1.160.2240.00916.84
7.1.150.2410.01116.29
7.1.140.3410.01116.50
7.1.130.3650.01316.61
7.1.120.3080.01116.33
7.1.110.3880.01016.13
7.1.100.2260.00915.88
7.1.90.6220.00416.09
7.1.80.6780.00816.01
7.1.70.5630.00815.07
7.1.60.6900.01332.97
7.1.50.9470.01232.69
7.1.40.7790.01232.48
7.1.30.8690.01132.67
7.1.20.7850.01532.43
7.1.10.6480.00714.54
7.1.00.3880.01114.67

preferences:
60.19 ms | 400 KiB | 5 Q