3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __set($prop, $value) { echo "__set($prop, $value)\n"; Fiber::suspend(); } } $foo = new Foo(); $fiber = new Fiber(function () use ($foo) { $foo->bar = 'bar'; }); $value = $fiber->start(); $foo->bar = 'baz'; $fiber->resume('test');

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.120.0060.00319.08
8.3.110.0090.00020.94
8.3.100.0070.00324.06
8.3.90.0040.00426.77
8.3.80.0090.00018.68
8.3.70.0190.00316.50
8.3.60.0140.00418.30
8.3.50.0100.01016.75
8.3.40.0100.01023.82
8.3.30.0070.00721.72
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.240.0060.00317.41
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0070.01326.77
8.2.200.0060.00316.75
8.2.190.0150.00316.88
8.2.180.0120.00916.50
8.2.170.0210.00018.97
8.2.160.0070.00722.96
8.2.150.0090.00025.66
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0130.00024.18
8.2.110.0130.00722.20
8.2.100.0150.00720.97
8.2.90.0270.00718.63
8.2.80.0250.00718.52
8.2.70.0210.01218.58
8.2.60.0140.00718.80
8.2.50.0190.00319.85
8.2.40.0200.00718.61
8.2.30.0110.00518.43
8.2.20.0180.00718.91
8.2.10.0150.00318.98
8.2.00.0260.00618.95
8.1.300.0110.00417.90
8.1.290.0080.00430.84
8.1.280.0120.00325.92
8.1.270.0000.00724.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0190.00918.44
8.1.230.0250.00318.63
8.1.220.0180.00618.48
8.1.210.0140.00920.00
8.1.200.0110.00418.51
8.1.190.0240.00718.42
8.1.180.0140.01418.43
8.1.170.0190.01018.50
8.1.160.0060.00618.72
8.1.150.0080.00420.48
8.1.140.0070.00718.51
8.1.130.0280.00318.56
8.1.120.0070.00718.58
8.1.110.0070.00719.64
8.1.100.0170.00318.45
8.1.90.0100.00318.60
8.1.80.0100.00318.56
8.1.70.0110.00018.65
8.1.60.0100.00718.57
8.1.50.0090.00618.41
8.1.40.0120.00018.75
8.1.30.0120.00018.84
8.1.20.0150.00018.75
8.1.10.0080.00418.61
8.1.00.0060.00618.77
8.0.300.0090.00617.93
8.0.290.0150.00017.65
8.0.280.0110.00417.76
8.0.270.0070.00717.79
8.0.260.0050.00518.36
8.0.250.0070.00717.91
8.0.240.0140.00017.89
8.0.230.0090.00318.25
8.0.220.0070.00717.94
8.0.210.0150.00017.77
8.0.200.0150.00017.60
8.0.190.0090.00318.31
8.0.180.0150.00017.92
8.0.170.0170.00017.71
8.0.160.0090.00617.90
8.0.150.0130.00317.91
8.0.140.0090.00617.80
8.0.130.0100.00318.29
8.0.120.0110.00017.64
8.0.110.0050.00518.38
8.0.100.0150.00017.50
8.0.90.0080.00617.83
8.0.80.0110.00417.77
8.0.70.0140.00017.88
8.0.60.0120.00018.07
8.0.50.0070.00717.88
8.0.30.0100.00218.00
8.0.20.0100.00417.86
8.0.10.0140.00018.13

preferences:
43.82 ms | 403 KiB | 5 Q