3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); register_tick_function(function(){ echo "Tick\n"; // if(Fiber::getCurrent() !== null) { // Fiber::suspend(); // } }); for($i = 3; $i--;) { $fibers[$i] = new fiber(function (){ echo "1\n"; echo "2\n"; echo "3\n"; }); $fibers[$i]->start(); }

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.0140.00416.75
8.3.60.0100.01016.75
8.3.50.0140.00719.92
8.3.40.0040.01120.29
8.3.30.0150.00618.53
8.3.20.0050.00324.18
8.3.10.0100.00924.93
8.3.00.0030.00526.16
8.2.190.0120.00616.73
8.2.180.0120.00325.92
8.2.170.0070.01418.72
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00421.79
8.2.110.0070.00420.52
8.2.100.0060.00617.84
8.2.90.0040.00418.22
8.2.80.0060.00318.34
8.2.70.0040.00417.50
8.2.60.0040.00417.75
8.2.50.0030.00518.16
8.2.40.0070.00517.83
8.2.30.0030.00518.85
8.2.20.0080.00319.21
8.2.10.0060.00617.74
8.2.00.0070.00717.77
8.1.280.0070.01125.92
8.1.270.0120.00424.44
8.1.260.0120.00926.35
8.1.250.0070.00028.09
8.1.240.0030.00620.93
8.1.230.0090.00324.76
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0040.00817.25
8.1.190.0000.00917.35
8.1.180.0030.00618.10
8.1.170.0040.00417.76
8.1.160.0040.00418.88
8.1.150.0000.00718.68
8.1.140.0140.00317.40
8.1.130.0120.00417.38
8.1.120.0120.00417.54
8.1.110.0160.00017.56
8.1.100.0170.00017.59
8.1.90.0200.00017.59
8.1.80.0110.00517.70
8.1.70.0080.00517.43
8.1.60.0060.00617.69
8.1.50.0120.00017.68
8.1.40.0050.01017.61
8.1.30.0050.00317.63
8.1.20.0000.00917.62
8.1.10.0050.00317.55
8.1.00.0100.00017.60
8.0.300.0040.00419.94
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0000.01116.78
8.0.260.0060.00616.84
8.0.250.0080.00016.79
8.0.240.0030.00516.86
8.0.230.0000.00716.85
8.0.220.0000.00816.85
8.0.210.0090.00016.79
8.0.200.0100.00016.77
8.0.190.0040.00416.78
8.0.180.0040.00416.89
8.0.170.0050.00316.79
8.0.160.0030.00816.96
8.0.150.0070.00216.88
8.0.140.0080.00316.65
8.0.130.0030.00616.75
8.0.120.0120.00216.83
8.0.110.0130.00016.79
8.0.100.0090.00316.94
8.0.90.0060.00616.79
8.0.80.0000.01116.71
8.0.70.0130.00216.89
8.0.60.0090.00416.85
8.0.50.0050.00916.82
8.0.30.0140.00016.93
8.0.20.0030.00816.91
8.0.10.0000.01116.88
7.4.330.0070.00716.30
7.4.320.0170.00016.52
7.4.300.0130.00316.48
7.4.290.0150.00316.37
7.4.280.0150.00016.42
7.4.270.0080.00816.46
7.4.260.0130.00316.32
7.4.250.0160.00016.45
7.4.240.0100.00516.53
7.4.230.0100.00716.50
7.4.220.0080.00816.53
7.4.210.0090.00416.48
7.4.200.0090.00516.53
7.4.190.0140.00016.54
7.4.180.0070.00716.44
7.4.160.0000.01416.42
7.4.150.0090.00916.47
7.4.140.0100.00316.35
7.4.130.0140.00316.48
7.4.120.0100.00516.52
7.4.110.0080.00516.32
7.4.100.0100.00316.53
7.4.90.0130.00016.30
7.4.80.0100.00416.30
7.4.70.0070.00916.30
7.4.60.0140.00016.30
7.4.50.0140.00016.34
7.4.40.0130.00016.34
7.4.30.0040.00916.46
7.4.20.0140.00016.32
7.4.10.0090.00516.33
7.4.00.0060.00616.34

preferences:
17.8 ms | 401 KiB | 5 Q