3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isset = true; $array = array(); $notSetArray = array(0=>''); $string = ''; // Test Source function Test9_2() { global $isset; /* The Test */ $t = microtime(true); while($i < 2000) { empty($isset); ++$i; } return (microtime(true) - $t); } // Variable Clean-up function Test9_End() { global $isset, $array, $string; unset($isset, $array, $string); }

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.4.00.0070.01114.73
7.3.120.0060.01214.49
7.3.110.0030.01414.64
7.3.100.0100.00714.79
7.3.90.0030.00614.54
7.3.80.0000.01614.57
7.3.70.0000.01014.56
7.3.60.0000.01214.51
7.3.50.0070.00714.59
7.3.40.0040.01214.78
7.3.30.0030.00714.62
7.3.20.0040.01116.74
7.3.10.0030.00716.20
7.3.00.0100.00316.29
7.2.250.0030.01614.77
7.2.240.0030.01514.41
7.2.230.0060.00914.76
7.2.220.0030.01014.59
7.2.210.0030.01314.73
7.2.200.0070.00714.77
7.2.190.0130.00014.62
7.2.180.0180.00414.52
7.2.170.0040.01714.73
7.1.330.0070.00715.46
7.1.320.0100.00315.64
7.1.310.0000.01415.58
7.1.300.0030.01415.75
7.1.290.0080.00815.66
7.1.280.0000.00915.68
7.1.270.0030.00915.76
7.1.260.0100.00315.71
7.1.70.0100.01016.68
7.1.60.0100.01419.33
7.1.50.0100.00016.67
7.1.00.0100.06022.28
7.0.200.0030.00616.43
7.0.140.0070.07022.10
7.0.60.0000.04319.82
7.0.50.0170.07317.86
7.0.40.0130.08020.35
7.0.30.0370.07020.06
7.0.20.0100.05020.37
7.0.10.0030.07320.25
7.0.00.0100.05720.12
5.6.210.0100.06720.63
5.6.200.0100.04018.13
5.6.190.0070.04720.39
5.6.180.0170.05320.61
5.6.170.0400.06720.55
5.6.160.0170.07320.45
5.6.150.0130.06018.27
5.6.140.0030.03718.18
5.6.130.0170.04318.17
5.6.120.0070.08720.98
5.6.110.0100.06720.98
5.6.100.0170.08020.96
5.6.90.0070.08320.89
5.6.80.0100.07720.51
5.6.70.4530.04020.40
5.5.350.0130.05720.43
5.5.340.0070.04017.97
5.5.330.0070.04320.57
5.5.320.0230.04020.36
5.5.310.0170.05020.26
5.5.300.0070.03717.95
5.5.290.0070.06017.95
5.5.280.0130.07720.84
5.5.270.0070.04320.87
5.5.260.0070.04020.72
5.5.250.0070.03720.70
5.5.240.0170.06320.24
5.4.450.0130.05319.56
5.4.440.0870.05319.70
5.4.430.0170.04719.58
5.4.420.0700.00019.52
5.4.410.0100.05318.86
5.4.400.0130.05718.74
5.4.390.0230.05718.77
5.4.380.0270.06018.76
5.4.370.0670.06318.57
5.4.360.0270.04718.73
5.4.350.0060.04512.03
5.4.340.0050.03812.02
5.4.320.0060.03612.51
5.4.310.0070.03612.51
5.4.300.0060.03812.51
5.4.290.0050.04112.50
5.4.280.0070.05612.38
5.4.270.0130.07312.38
5.4.260.0230.06312.38
5.4.250.0160.06912.38
5.4.240.0200.06112.38
5.4.230.0160.05712.37
5.4.220.0370.09912.37
5.4.210.0110.05912.37
5.4.200.0130.07012.36
5.4.190.0080.05612.36
5.4.180.0110.05512.37
5.4.170.0180.08412.37
5.4.160.0170.05912.37
5.4.150.0270.09612.36
5.4.140.0330.14812.05
5.4.130.0370.11212.03
5.4.120.0160.07211.99
5.4.110.0300.13411.99
5.4.100.0260.12411.99
5.4.90.0280.11011.99
5.4.80.0150.07011.99
5.4.70.0160.07011.98
5.4.60.0250.06811.99
5.4.50.0210.10811.99
5.4.40.0250.08311.97
5.4.30.0170.07111.97
5.4.20.0160.06111.97
5.4.10.0100.05511.97
5.4.00.0150.08511.46
5.3.290.0040.04112.80
5.3.280.0170.09012.71
5.3.270.0160.06812.72
5.3.260.0130.09012.72
5.3.250.0280.10212.72
5.3.240.0310.06112.72
5.3.230.0250.09112.70
5.3.220.0260.09812.68
5.3.210.0340.08912.68
5.3.200.0240.08612.68
5.3.190.0120.05412.68
5.3.180.0110.06212.68
5.3.170.0210.10512.66
5.3.160.0290.07212.68
5.3.150.0170.09212.68
5.3.140.0240.05812.66
5.3.130.0070.05812.66
5.3.120.0280.06312.66
5.3.110.0170.07012.66
5.3.100.0240.09712.12
5.3.90.0190.11912.09
5.3.80.0200.07312.08
5.3.70.0110.06512.07
5.3.60.0160.07212.06
5.3.50.0430.07912.00
5.3.40.0130.09112.00
5.3.30.0230.07211.95
5.3.20.0160.09211.75
5.3.10.0240.12811.70
5.3.00.0150.07811.70
5.2.170.0080.0459.20
5.2.160.0090.0489.19
5.2.150.0070.0479.20
5.2.140.0090.0459.19
5.2.130.0120.0449.15
5.2.120.0310.1079.15
5.2.110.0190.0959.16
5.2.100.0210.0729.15
5.2.90.0130.0649.15
5.2.80.0150.0639.14
5.2.70.0220.0769.14
5.2.60.0100.0699.11
5.2.50.0110.0679.08
5.2.40.0310.1019.05
5.2.30.0170.0769.02
5.2.20.0050.0439.01
5.2.10.0240.0648.92
5.2.00.0090.0778.79
5.1.60.0210.0698.07
5.1.50.0290.0568.07
5.1.40.0200.0468.05
5.1.30.0160.0668.40
5.1.20.0160.0538.43
5.1.10.0110.0348.15
5.1.00.0110.0948.15
5.0.50.0100.0516.62
5.0.40.0110.0326.48
5.0.30.0070.0506.30
5.0.20.0070.0256.26
5.0.10.0050.0306.25
5.0.00.0140.0746.23
4.4.90.0150.0254.78
4.4.80.0080.0384.76
4.4.70.0100.0394.76
4.4.60.0100.0364.75
4.4.50.0040.0244.77
4.4.40.0130.0764.71
4.4.30.0140.0334.76
4.4.20.0140.0304.84
4.4.10.0240.0394.85
4.4.00.0130.0554.76
4.3.110.0080.0234.67
4.3.100.0030.0544.66
4.3.90.0200.0374.63
4.3.80.0110.0484.59
4.3.70.0180.0524.63
4.3.60.0220.0644.63
4.3.50.0100.0474.63
4.3.40.0120.0514.54
4.3.30.0050.0263.29
4.3.20.0040.0383.27
4.3.10.0060.0303.24
4.3.00.0130.0236.89

preferences:
41.78 ms | 401 KiB | 5 Q