3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = range(0, 10000); $start_time = microtime(true); for ($index = 0; $index < 100000; $index++) { count($arr); } echo 'Took: ' . (string) (microtime(true) - $start_time) . "\n"; $start_time = microtime(true); for ($index = 0; $index < 100000; $index++) { empty($arr); } echo 'Took: ' . (string) (microtime(true) - $start_time) . "\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)
7.2.00.0030.01419.50
7.1.70.0000.01317.34
7.1.60.0100.02419.46
7.1.50.0100.01017.14
7.1.00.0130.07322.31
7.0.200.0030.00916.75
7.0.140.0070.07321.95
7.0.110.0170.08320.21
7.0.100.0200.07720.27
7.0.90.0030.09720.14
7.0.80.0130.07720.22
7.0.70.0070.06020.18
7.0.60.0070.08720.23
7.0.50.0070.09020.28
7.0.40.0130.08019.70
7.0.30.0030.09019.85
7.0.20.0130.08019.87
7.0.10.0100.07719.85
7.0.00.0070.09319.78
5.6.280.0030.09722.43
5.6.260.0070.10021.97
5.6.250.0070.09721.97
5.6.240.0130.06721.94
5.6.230.0070.10022.10
5.6.220.0070.10321.94
5.6.210.0100.09721.85
5.6.200.0200.08321.93
5.6.190.0070.09721.92
5.6.180.0130.09321.91
5.6.170.0130.09021.89
5.6.160.0030.10321.85
5.6.150.0070.10021.84
5.6.140.0030.09721.86
5.6.130.0100.09321.86
5.6.120.0100.10021.87
5.6.110.0100.09321.82
5.6.100.0100.09021.88
5.6.90.0170.09721.91
5.6.80.0070.09721.35
5.6.70.0130.08721.21
5.6.60.0170.09021.29
5.6.50.0070.09721.22
5.6.40.0070.09721.50
5.6.30.0100.10321.28
5.6.20.0070.09721.34
5.6.10.0070.09321.34
5.6.00.0170.09321.24
5.5.380.0070.09721.61
5.5.370.0070.09721.64
5.5.360.0070.10021.84
5.5.350.0130.11721.73
5.5.340.0070.08722.06
5.5.330.0100.09722.32
5.5.320.0170.09721.95
5.5.310.0070.06722.23
5.5.300.0200.08722.05
5.5.290.0130.07722.06
5.5.280.0230.08322.08
5.5.270.0170.10322.25
5.5.260.0100.10022.25
5.5.250.0070.10022.12
5.5.240.0070.09721.70
5.5.230.0170.08721.39
5.5.220.0070.09721.52
5.5.210.0170.08321.66
5.5.200.0100.09321.45
5.5.190.0100.07321.59
5.5.180.0070.07321.64
5.5.160.0030.10021.58
5.5.150.0000.10721.51
5.5.140.0030.10721.43
5.5.130.0100.09321.59
5.5.120.0070.10321.50
5.5.110.0070.09021.59
5.5.100.0170.08021.43
5.5.90.0070.09321.48
5.5.80.0100.09021.50
5.5.70.0070.10321.30
5.5.60.0200.08721.48
5.5.50.0100.10021.46
5.5.40.0070.09021.28
5.5.30.0170.08721.49
5.5.20.0230.07721.34
5.5.10.0130.09321.45
5.5.00.0100.08021.30
5.4.450.0100.09020.46
5.4.440.0100.07720.73
5.4.430.0100.08720.46
5.4.420.0130.07320.54
5.4.410.0030.09020.44
5.4.400.0030.09320.34
5.4.390.0100.08720.15
5.4.380.0000.07020.19
5.4.370.0130.09020.23
5.4.360.0100.09320.31
5.4.350.0030.09320.10
5.4.340.0070.10020.20
5.4.320.0130.08720.21
5.4.310.0100.09320.36
5.4.300.0100.08720.20
5.4.290.0030.10320.13
5.4.280.0100.09020.33
5.4.270.0130.09020.32
5.4.260.0100.05720.10
5.4.250.0130.08020.31
5.4.240.0070.10020.37
5.4.230.0130.08720.21
5.4.220.0100.09320.49
5.4.210.0030.09720.05
5.4.200.0100.08020.15
5.4.190.0100.09720.41
5.4.180.0030.10020.23
5.4.170.0170.07720.39
5.4.160.0130.08720.09
5.4.150.0000.09320.48
5.4.140.0170.08017.70
5.4.130.0070.08017.53
5.4.120.0070.09017.70
5.4.110.0070.08717.70
5.4.100.0070.09017.64
5.4.90.0030.09317.70
5.4.80.0100.09317.62
5.4.70.0100.09317.65
5.4.60.0130.08717.71
5.4.50.0130.06717.67
5.4.40.0130.08017.45
5.4.30.0170.08717.67
5.4.20.0100.09017.53
5.4.10.0100.07717.61
5.4.00.0030.09716.86
5.3.290.0100.09015.91
5.3.280.0070.06315.95
5.3.270.0030.09715.88
5.3.260.0000.08715.72
5.3.250.0030.09315.62
5.3.240.0170.08315.78
5.3.230.0100.08715.61
5.3.220.0030.10315.82
5.3.210.0130.09715.75
5.3.200.0070.08715.83
5.3.190.0030.09315.67
5.3.180.0030.10015.83
5.3.170.0000.11015.66
5.3.160.0070.09015.75
5.3.150.0100.08015.57
5.3.140.0000.09715.74
5.3.130.0070.08315.68
5.3.120.0070.10015.67
5.3.110.0170.08715.69
5.3.100.0030.09715.05
5.3.90.0100.09315.20
5.3.80.0030.09015.29
5.3.70.0100.09015.06
5.3.60.0130.09015.04
5.3.50.0100.07715.15
5.3.40.0130.09315.18
5.3.30.0100.08714.97
5.3.20.0070.09314.70
5.3.10.0130.08314.75
5.3.00.0170.09314.67
5.2.170.0100.09012.07
5.2.160.0100.07312.03
5.2.150.0070.09012.07
5.2.140.0100.09012.30
5.2.130.0100.08312.46
5.2.120.0100.08712.04
5.2.110.0030.09012.11
5.2.100.0130.08312.27
5.2.90.0100.08712.18
5.2.80.0100.06012.00
5.2.70.0030.09312.00
5.2.60.0030.09012.21
5.2.50.0000.09312.02
5.2.40.0070.08312.00
5.2.30.0130.08312.05
5.2.20.0170.07312.00
5.2.10.0100.08312.00
5.2.00.0130.07712.00
5.1.60.0070.08012.00
5.1.50.0030.08312.00
5.1.40.0130.07712.00
5.1.30.0030.08712.00
5.1.20.0070.08012.02
5.1.10.0100.07312.03
5.1.00.0070.08012.00
5.0.50.0100.10312.00
5.0.40.0030.11012.00
5.0.30.0030.10712.00
5.0.20.0030.07712.00
5.0.10.0030.10312.00
5.0.00.0000.11012.00
4.4.90.0030.09712.00
4.4.80.0100.08712.00
4.4.70.0070.07312.00
4.4.60.0000.08312.00
4.4.50.0030.05712.00
4.4.40.0030.10012.00
4.4.30.0030.08012.00
4.4.20.0070.09012.00
4.4.10.0000.07012.00
4.4.00.0070.10012.00
4.3.110.0030.08712.00
4.3.100.0100.08312.00
4.3.90.0030.08712.00
4.3.80.0000.10712.00
4.3.70.0130.07712.00
4.3.60.0030.08312.00
4.3.50.0070.08712.00
4.3.40.0070.10012.00
4.3.30.0030.09012.00
4.3.20.0000.09312.00
4.3.10.0030.09012.00
4.3.00.0030.09312.00

preferences:
31.91 ms | 401 KiB | 5 Q