3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassName1 { function __destruct() { print "Destroying " . __CLASS__ . "\n"; } } $fiber = new Fiber( function() { $d1 = new ClassName1; // Resulted output $d2 = \WeakReference::create(\Fiber::getCurrent())->get(); // expected output //\WeakReference::create(\Fiber::getCurrent())->get(); Fiber::suspend(); return ; } ); echo "1\n"; $fiber->start(); echo "2\n"; $fiber = null; echo "3\n";

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.5.00.0130.00820.33
8.4.150.0030.00014.05
8.4.140.0140.00817.80
8.4.130.0110.00717.90
8.4.120.0100.01020.52
8.4.110.0070.00822.55
8.4.100.0160.00517.69
8.4.90.0090.00717.83
8.4.80.0050.00417.80
8.4.70.0080.00317.88
8.4.60.0140.00618.39
8.4.50.0140.00617.76
8.4.40.0080.00817.90
8.4.30.0040.00718.93
8.4.20.0130.00722.27
8.4.10.0090.00023.66
8.3.280.0130.01118.26
8.3.270.0110.00816.68
8.3.260.0190.00716.22
8.3.250.0110.00719.10
8.3.240.0130.00716.52
8.3.230.0100.00916.54
8.3.220.0110.00517.09
8.3.210.0140.00616.47
8.3.200.0050.00416.60
8.3.190.0120.00617.01
8.3.180.0090.01019.09
8.3.170.0050.00316.98
8.3.160.0060.01218.25
8.3.150.0060.01017.12
8.3.140.0040.01516.72
8.3.130.0130.00316.46
8.3.120.0090.00020.74
8.3.110.0040.00420.94
8.3.100.0070.00324.06
8.3.90.0100.00626.77
8.3.80.0090.00016.75
8.3.70.0070.01116.63
8.3.60.0230.00016.75
8.3.50.0090.00620.34
8.3.40.0030.01020.21
8.3.30.0090.00918.76
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0030.00626.16
8.2.290.0130.00720.37
8.2.280.0110.00718.50
8.2.270.0120.00616.93
8.2.260.0080.00018.80
8.2.250.0090.00018.63
8.2.240.0160.00317.16
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0060.00318.25
8.2.190.0100.00716.58
8.2.180.0120.00325.92
8.2.170.0070.01418.95
8.2.160.0120.00324.07
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0000.01223.04
8.2.100.0040.00717.91
8.2.90.0030.00518.22
8.2.80.0110.00017.97
8.2.70.0040.00417.80
8.2.60.0060.00318.16
8.2.50.0000.00818.10
8.2.40.0040.00419.30
8.2.30.0000.00719.39
8.2.20.0090.00219.12
8.2.10.0090.00218.74
8.2.00.0050.00319.32
8.1.330.0110.00918.41
8.1.320.0100.00516.20
8.1.310.0100.00718.36
8.1.300.0080.00018.54
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00725.93
8.1.230.0090.00320.92
8.1.220.0040.00417.74
8.1.210.0060.00318.92
8.1.200.0000.01117.47
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0040.00418.70
8.1.160.0040.00418.91
8.1.150.0030.00618.89
8.1.140.0060.00317.47
8.1.130.0000.00718.96
8.1.120.0030.00317.52
8.1.110.0060.00517.51
8.1.100.0130.00417.55
8.1.90.0080.00517.44
8.1.80.0160.00017.38
8.1.70.0160.00017.39
8.1.60.0130.00717.62
8.1.50.0110.00518.32
8.1.40.0080.00317.54
8.1.30.0040.00917.51
8.1.20.0130.00317.59
8.1.10.0140.00017.51
8.1.00.0180.00017.48
8.0.300.0000.00819.90
8.0.290.0000.00816.61
8.0.280.0070.00018.27
8.0.270.0070.00217.77
8.0.260.0000.00718.40
8.0.250.0030.00516.88
8.0.240.0070.00716.89
8.0.230.0110.00316.82
8.0.220.0090.00616.80
8.0.210.0120.00216.88
8.0.200.0140.00016.91
8.0.190.0030.01216.92
8.0.180.0100.00316.89
8.0.170.0120.00216.88
8.0.160.0130.00316.87
8.0.150.0120.00316.89
8.0.140.0110.00416.88
8.0.130.0110.00516.73
8.0.120.0090.00616.77
8.0.110.0080.00616.88
8.0.100.0110.00416.84
8.0.90.0040.01116.67
8.0.80.0120.00216.91
8.0.70.0110.00416.82
8.0.60.0140.00016.79
8.0.50.0080.00816.82
8.0.30.0100.00616.89
8.0.20.0050.01017.00
8.0.10.0060.00916.77
7.4.330.0060.00015.55
7.4.320.0070.00716.46
7.4.300.0140.00316.37
7.4.290.0160.00016.44
7.4.280.0140.00316.51
7.4.270.0130.00316.38
7.4.260.0110.00516.29
7.4.250.0170.00016.56
7.4.240.0140.00316.41
7.4.230.0130.00416.48
7.4.220.0110.00316.47
7.4.210.0120.00316.44
7.4.200.0150.00016.43
7.4.190.0130.00316.58
7.4.180.0090.00516.57
7.4.160.0140.00016.49
7.4.150.0070.00716.43
7.4.140.0100.00316.41
7.4.130.0110.00316.44
7.4.120.0150.00016.38
7.4.110.0150.00016.49
7.4.100.0100.00016.38
7.4.90.0050.00216.30
7.4.80.0040.00416.26
7.4.70.0070.00316.24
7.4.60.0110.00016.25
7.4.50.0020.00716.18
7.4.40.0040.00416.38
7.4.30.0000.00816.36
7.4.20.0000.00716.38
7.4.10.0020.00516.38
7.4.00.0040.00416.42

preferences:
27 ms | 403 KiB | 5 Q