3v4l.org

run code in 300+ PHP versions simultaneously
<?php class workerThread extends \Thread { public function __construct($i){ $this->i=$i; } public function run(){ while(true){ echo $this->i; sleep(1); } } } for($i=0;$i<5;$i++){ $workers[$i]=new workerThread($i); $workers[$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.60.0070.00718.43
8.3.50.0120.00318.34
8.3.40.0070.00718.92
8.3.30.0090.01218.72
8.3.20.0050.00324.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.180.0150.00025.92
8.2.170.0140.00718.94
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00426.35
8.2.110.0040.00422.05
8.2.100.0150.00017.72
8.2.90.0000.00817.88
8.2.80.0030.00518.91
8.2.70.0040.00417.63
8.2.60.0080.00017.63
8.2.50.0050.00318.05
8.2.40.0000.00819.82
8.2.30.0000.00718.06
8.2.20.0000.00918.07
8.2.10.0030.00519.19
8.2.00.0000.00719.15
8.1.280.0040.01125.92
8.1.270.0060.00323.99
8.1.260.0050.00228.09
8.1.250.0000.00728.09
8.1.240.0040.00423.96
8.1.230.0040.00717.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0000.00718.59
8.1.160.0050.00318.83
8.1.150.0060.00318.89
8.1.140.0000.00718.77
8.1.130.0000.00720.21
8.1.120.0030.00617.46
8.1.110.0050.00217.28
8.1.100.0080.00017.25
8.1.90.0050.00317.37
8.1.80.0030.00617.37
8.1.70.0040.00417.33
8.1.60.0060.00317.41
8.1.50.0040.00417.35
8.1.40.0040.00417.35
8.1.30.0040.00417.60
8.1.20.0000.00817.63
8.1.10.0000.00817.52
8.1.00.0040.00417.43
8.0.300.0040.00420.47
8.0.290.0060.00316.75
8.0.280.0000.00718.45
8.0.270.0070.00017.98
8.0.260.0060.00020.15
8.0.250.0000.00717.08
8.0.240.0060.00316.98
8.0.230.0000.00717.03
8.0.220.0030.00316.92
8.0.210.0030.00316.85
8.0.200.0060.00016.95
8.0.190.0070.00017.11
8.0.180.0070.00016.98
8.0.170.0060.00316.89
8.0.160.0040.00416.91
8.0.150.0000.00816.98
8.0.140.0040.00416.83
8.0.130.0000.00613.34
8.0.120.0040.00416.86
8.0.110.0070.00016.99
8.0.100.0030.00316.90
8.0.90.0040.00416.89
8.0.80.0070.01016.90
8.0.70.0070.00016.81
8.0.60.0040.00416.89
8.0.50.0000.00716.77
8.0.30.0090.00917.29
8.0.20.0090.00917.23
8.0.10.0000.00716.90
8.0.00.0090.00916.85
7.4.330.0060.00015.55
7.4.320.0000.00716.61
7.4.300.0000.00716.56
7.4.290.0040.00416.54
7.4.280.0070.00016.44
7.4.270.0030.00616.51
7.4.260.0000.00613.23
7.4.250.0030.00316.53
7.4.240.0000.00716.57
7.4.230.0000.00716.50
7.4.220.0020.00516.47
7.4.210.0030.01016.48
7.4.200.0040.00416.64
7.4.130.0090.01216.50
7.4.120.0040.01416.32
7.4.110.0050.01116.48
7.4.100.0130.00316.58
7.4.90.0070.01116.36
7.4.80.0160.00816.38
7.4.70.0030.01716.47
7.4.60.0060.01616.54
7.4.50.0110.01115.98
7.4.40.0100.01516.36
7.4.30.0100.00716.25
7.4.20.0110.00816.51
7.4.10.0110.01516.37
7.4.00.0100.00716.25
7.3.330.0030.00316.32
7.3.320.0000.00613.29
7.3.310.0040.00416.31
7.3.300.0040.00416.29
7.3.290.0070.00916.36
7.3.280.0060.00916.23
7.3.260.0120.00616.29
7.3.230.0150.00016.44
7.3.210.0160.00516.37
7.3.200.0090.01116.41
7.3.190.0140.00716.35
7.3.180.0140.01116.51
7.3.170.0080.01416.28
7.3.160.0060.01416.38
7.3.150.0140.00516.38
7.3.140.0090.00916.31
7.3.130.0170.00016.17
7.3.120.0170.00716.40
7.3.110.0110.01516.05
7.3.100.0150.00916.37
7.3.90.0080.01516.47
7.3.80.0140.00716.35
7.3.70.0110.00916.30
7.3.60.0140.00916.21
7.3.50.0100.01316.06
7.3.40.0100.01315.90
7.3.30.0180.00016.38
7.3.20.0140.00916.34
7.3.10.0150.00616.19
7.3.00.0140.00916.16
7.2.330.0130.01016.39
7.2.320.0190.00816.46
7.2.310.0160.01316.44
7.2.300.0170.00616.21
7.2.290.0120.00916.21
7.2.280.0130.00716.36
7.2.270.0120.00716.16
7.2.260.0150.00416.21
7.2.250.0100.01016.59
7.2.240.0180.01016.33
7.2.230.0150.01316.11
7.2.220.0120.01516.14
7.2.210.0080.01516.18
7.2.200.0120.01216.42
7.2.190.0190.00616.21
7.2.180.0230.01016.10
7.2.170.0250.00716.26
7.2.160.0100.01016.13
7.2.150.0120.01216.25
7.2.140.0120.01316.18
7.2.130.0080.02016.32
7.2.120.0090.01216.27
7.2.110.0100.01316.53
7.2.100.0120.01616.46
7.2.90.0110.01216.10
7.2.80.0100.01016.32
7.2.70.0160.00316.34
7.2.60.0060.01316.24
7.2.50.0080.01116.40
7.2.40.0090.01316.35
7.2.30.0140.00716.19
7.2.20.0070.01316.25
7.2.10.0120.00716.25
7.2.00.0110.00716.28

preferences:
56.03 ms | 400 KiB | 5 Q