3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($fromRequire)) { return; function xxx() {} return; } for ($i = 0; $i < 10 * 1000; $i++) { $fromRequire = true; require __FILE__; if (($i % (1000)) === 0) { gc_collect_cycles(); echo round(memory_get_usage() / (1024 * 1024), 3) . " MiB\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.1.60.1190.10920.02
8.1.50.0800.15519.99
8.1.40.1200.11719.84
8.1.30.1190.11220.03
8.1.20.1120.11520.04
8.1.10.1340.10220.00
8.1.00.0950.14119.80
8.0.190.1150.11923.62
8.0.180.0960.14123.75
8.0.170.1060.12723.89
8.0.160.1050.13423.84
8.0.150.1190.11923.81
8.0.140.1230.11723.72
8.0.130.1110.12723.68
8.0.120.0810.15323.73
8.0.110.1230.11023.68
8.0.100.1090.12623.70
8.0.90.0910.14523.73
8.0.80.1400.09423.82
8.0.70.1170.11623.73
8.0.60.1290.10623.77
8.0.50.1200.12623.86
8.0.30.3740.35723.79
8.0.20.3510.35423.97
8.0.10.3820.32323.86
8.0.00.4070.34224.01
7.4.290.0970.12422.88
7.4.280.1030.12323.06
7.4.270.1120.12323.09
7.4.260.1140.11723.09
7.4.250.1550.07923.05
7.4.240.1080.12422.98
7.4.230.1070.12422.98
7.4.220.0980.13123.12
7.4.210.1120.11922.84
7.4.200.0950.13522.96
7.4.190.1270.10422.87
7.4.180.1100.12022.81
7.4.160.3600.33723.07
7.4.150.3550.32922.94
7.4.140.3850.31222.95
7.4.130.3730.33523.01
7.4.120.3740.30323.01
7.4.110.3970.34722.96
7.4.100.4240.38722.99
7.4.90.4650.37422.99
7.4.80.4230.36722.95
7.4.70.4160.37522.96
7.4.60.4180.38122.86
7.4.50.4360.37722.93
7.4.40.4260.36722.99
7.4.30.4040.38222.98
7.4.20.4380.35123.05
7.4.10.4290.36118.48
7.4.00.4570.37318.43
7.3.330.1220.12918.46
7.3.320.1570.10818.41
7.3.310.1590.09818.39
7.3.300.1290.12318.23
7.3.290.1410.11118.38
7.3.280.1250.13818.34
7.3.270.4930.36118.48
7.3.260.4690.35918.31
7.3.250.4490.37718.42
7.3.240.5080.34418.44
7.3.230.4810.34618.36
7.3.220.6390.42918.34
7.3.210.5640.43918.37
7.3.200.5200.41318.26
7.3.190.5470.39718.50
7.3.180.5390.42718.42
7.3.170.5220.40818.43
7.3.160.5450.41018.44
7.3.150.5120.40818.37
7.3.140.5220.40418.37
7.3.130.5460.41518.34
7.3.120.5410.40018.40
7.3.110.5320.41318.42
7.3.100.5430.39618.30
7.3.90.4910.44018.47
7.3.80.5210.41918.41
7.3.70.5220.41218.39
7.3.60.5260.41618.42
7.3.50.5420.39718.38
7.3.40.5700.39818.41
7.3.30.5660.45318.33
7.3.20.5320.40518.89
7.3.10.5210.42618.84
7.3.00.5330.42118.82
7.2.340.4740.36718.66
7.2.330.5570.42518.75
7.2.320.5650.44518.80
7.2.310.5300.40418.71
7.2.300.5340.43618.79
7.2.290.5350.39318.77
7.2.280.5400.41718.77
7.2.270.5050.44618.68
7.2.260.5650.39318.88
7.2.250.5740.43018.76
7.2.240.5270.40818.75
7.2.230.5650.42018.72
7.2.220.5230.41618.69
7.2.210.5330.40818.72
7.2.200.5250.41018.79
7.2.190.5750.40618.68
7.2.180.5360.42718.70
7.2.170.5320.43918.75
7.2.160.5520.45318.68
7.2.150.5610.46419.25
7.2.140.5220.42219.27
7.2.130.5400.43619.31
7.2.120.5470.42319.22
7.2.110.5580.38319.23
7.2.100.5360.41119.20
7.2.90.5640.40219.24
7.2.80.5470.42619.10
7.2.70.5230.41919.22
7.2.60.5330.44319.20
7.2.50.6360.43219.12
7.2.40.5310.45219.15
7.2.30.5410.41219.16
7.2.20.5400.44619.27
7.2.10.5270.43519.21
7.2.00.5390.40819.17

preferences:
35.08 ms | 400 KiB | 5 Q